Is Tomcat is an application server ?
Hi all, Many might have asked this question but I need a more elaborate answer. Today I attended an interview and the interviewer insists that Tomcat versions above 4.x is an application server. Is that true ?. What are the points to support the argument ?. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing SSL
Hi, try this one http://portecle.sourceforge.net/ regards, Matej Stephen Caine wrote: All, I have reviewed the man pages and java.sun.com docs for keytool. I have used keytool to import a certificate from a Certificate authority. Keytool seems to be lacking the option to import an entire prexisting private/public key pair into a JKS format keystore. Specifically I have a RSA private Key and public key files from an existing SSL enabled site. I would like to use the same keypair for a Tomcat served site. Keytool will import the public key, but gives a parsing error when trying to import the RSA private key. I am using OS X 10.4.1 (Tiger Server) and Tomcat version 5.5.7. Any assistance is appreciated. Stephen Caine Soft Breeze Systems, LLC - 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: Is Tomcat is an application server ?
I think for most practical purposes Tomcat is an application server. What Tomcat does not have is a builtin Enterprise Java Beans container - however Tomcat supports many other parts of the J2EE spec. Simply by the numbers, the vast majority of Java web applications do not use EJBs - so Tomcat is just fine for most users. EJBs are not necessary at all for building sophisticated and complex web applications. Tomcat offers load balancing and clustering - which used to be only offered by commercial application servers. That said, there are some advantages to EJBs that can make the additional complexity worth it. For some enterprise situations, you may want an application server that is fully compliant with the J2EE spec, such as Jboss, WebSphere, BEA or one of the other commercial packages. HTH - Richard -Original Message- From: Anto Paul [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 11:02 PM To: Tomcat Users List Subject: Is Tomcat is an application server ? Hi all, Many might have asked this question but I need a more elaborate answer. Today I attended an interview and the interviewer insists that Tomcat versions above 4.x is an application server. Is that true ?. What are the points to support the argument ?. -- rgds Anto Paul - 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: follow simboilic links when requesting an html page using tomcat 5.0.25
Thank you Darek for your fast response it gave me the direction to resolve the problem. Looks like it is enough to add the attribute allowLinking=true the the context element. Thanks again. Ariel Darek Czarkowski wrote: Add Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / To the context DarekC On Mon, 2005-06-20 at 10:03, Ariel Pessah wrote: Hi all, Does any body knows how can I configure Tomcat to follow symbolic links when showing a page on Linux ? I am trying to load an html page which is actually a symbolic link to a different html page in a different location but I get a not found error. Also even when the requested html is in the same directory the error still occurs so it is not a permission problem. - 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: Is Tomcat is an application server ?
On 6/21/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I think for most practical purposes Tomcat is an application server. What Tomcat does not have is a builtin Enterprise Java Beans container - however Tomcat supports many other parts of the J2EE spec. Simply by the numbers, the vast majority of Java web applications do not use EJBs - so Tomcat is just fine for most users. EJBs are not necessary at all for building sophisticated and complex web applications. Tomcat offers load balancing and clustering - which used to be only offered by commercial application servers. That said, there are some advantages to EJBs that can make the additional complexity worth it. For some enterprise situations, you may want an application server that is fully compliant with the J2EE spec, such as Jboss, WebSphere, BEA or one of the other commercial packages. But it is not providing any services like transaction service, messaging service, remoting. Without these how it can be considered as an application server ?. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Version detection
Steve Vanspall wrote: Hi there, I am running tomcat under linux, unfortunately can't remember whether it is 4.1.24 or 4.1.31, which made me relise, I don't know how to find out. When i look at the logs it jsut says Tomcat 4.1 unlike on windows where it actually gives the full version number. So where would i look to find the tomcat version? http://my-tomcat-server:my-tomcat-port/manager/html/list Gives you a nice overview unless you removed the tomcat manager application. (If you've never used that application you might have to edit $TOMCAT_HOME/conf/tomcat-users.xml beforehand). Apart from that you can also compare md5sums of the jar-files agains both distributions. -- With Kind Regards / Mit freundlichem Gruß Holger Klawitter (listen at klawitter dot de) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem running three tomcats and not having a sticky session
Dear Tomcat users, Our setup: cocon 2.1.5.1, tomcat 5.5.4, jdk 1.5.0. In order to manage much more requests, I have installed three tomcats connected to one apache via mod_jk's loadbalancer and on each of the tomcats runs a cocoon. The problem now is, when I build a session via Firefox, exactly one of the three cocoons should serve subsequent requests, because it should be a sticky session. But instead the three cocoons change in serving the request. What can I do to have a sticky session? Yours sincerely, Ralph Lange - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is Tomcat is an application server ?
Antonio, I will be generous and not assume you are arguing for arguments sake - maybe just being a little too theoretical :) I gave you some real world examples. If you want some third party definitions, Google on the following: Application Server definitions And you will see that Tomcat is quite comfortably contained in all 9 of the definitions on that page. As far as the points you bring up: - Remoting implies distributing your objects across the network - a nice feature, but not often needed. Its talked about a lot - but for most applications its just not needed. - Our Hibernate-based Tomcat application use Hibernate and jta.jar for transaction services and it works quite well. We have most of the advantages of declarative transaction demarcation. - It is really nice to have a messenging service or message broker, but IMHO, the lack of such does not mean you cannot serve Java applications. Have a good day - Richard -Original Message- From: Anto Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 12:09 AM To: Tomcat Users List Subject: Re: Is Tomcat is an application server ? On 6/21/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote: I think for most practical purposes Tomcat is an application server. What Tomcat does not have is a builtin Enterprise Java Beans container - however Tomcat supports many other parts of the J2EE spec. Simply by the numbers, the vast majority of Java web applications do not use EJBs - so Tomcat is just fine for most users. EJBs are not necessary at all for building sophisticated and complex web applications. Tomcat offers load balancing and clustering - which used to be only offered by commercial application servers. That said, there are some advantages to EJBs that can make the additional complexity worth it. For some enterprise situations, you may want an application server that is fully compliant with the J2EE spec, such as Jboss, WebSphere, BEA or one of the other commercial packages. But it is not providing any services like transaction service, messaging service, remoting. Without these how it can be considered as an application server ?. -- rgds Anto Paul - 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: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10
I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /usr/local/apache2/logs/jk-sa1.log JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkMount /* ajp13w /VirtualHost = workers.properties = # workers.properties.minimal - # # This file provides minimal jk configuration properties needed to # connect to Tomcat. # # The workers that jk should create and work with # worker.list=ajp13w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009k serverl.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ 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 /
RE: Embedded Tomcat SSL
Hi Diarmuid, I was investigating running Embedded Tomcat, I also ran into problems running SSL, getting a SSLHandshakeException. Did you find a s solution Thanx, Freddie -Original Message- From: Diarmuid McDonald [mailto:[EMAIL PROTECTED] Sent: 09 June 2005 14:40 To: Tomcat Users List Subject: RE: Embedded Tomcat SSL Hi Mark, thanks for your replies. Is there any chance you could mail your complete code, for getting embedded Tomcat and SSL working. I Implemented creating a Connector this way however, I was unsuccessful and got the following Error. I have no idea what property it is looking for. 11:33:36:769: [org.apache.catalina.connector.Connector][main] ERROR - Error registering connector java.lang.NullPointerException at org.apache.tomcat.util.IntrospectionUtils.getProperty(IntrospectionUtils.java:375) at org.apache.catalina.connector.Connector.getProperty(Connector.java:289) at org.apache.catalina.connector.Connector.createObjectName(Connector.java:881) at org.apache.catalina.connector.Connector.initialize(Connector.java:909) at org.apache.catalina.startup.Embedded.start(Embedded.java:794) at de.start.sip.common.TestEmbededTomcat.main(TestEmbededTomcat.java:130) 72389 [main] ERROR org.apache.catalina.connector.Connector - Error registering connector java.lang.NullPointerException at org.apache.tomcat.util.IntrospectionUtils.getProperty(IntrospectionUtils.java:375) at org.apache.catalina.connector.Connector.getProperty(Connector.java:289) at org.apache.catalina.connector.Connector.createObjectName(Connector.java:881) at org.apache.catalina.connector.Connector.initialize(Connector.java:909) at org.apache.catalina.startup.Embedded.start(Embedded.java:794) at de.start.sip.common.TestEmbededTomcat.main(TestEmbededTomcat.java:130) 11:33:36:769: [org.apache.catalina.connector.Connector][main] DEBUG - Creating name for connector nu ll 72389 [main] DEBUG org.apache.catalina.connector.Connector - Creating name for connector null java.lang.NullPointerException at org.apache.catalina.connector.Connector.initialize(Connector.java:922) at org.apache.catalina.startup.Embedded.start(Embedded.java:794) at de.start.sip.common.TestEmbededTomcat.main(TestEmbededTomcat.java:130) -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: 08 June 2005 19:09 To: Tomcat Users List Subject: Re: Embedded Tomcat SSL I followed very closely the Embedded.java found in the tomcat source code... Here is the createConnector method --START-- public Connector createConnector( String protocol) { Connector connector = null; try { connector = new Connector(org.apache.jk.server.JkCoyoteHandler); IntrospectionUtils.setProperty(connector, useURIValidationHack, + false); IntrospectionUtils.setProperty(connector, protocolHandlerClassName, org.apache.jk.server.JkCoyoteHandler); } catch (Exception e) { e.printStackTrace(); log.debug(Couldn't create connector.); } return (connector); } --END-- On 6/8/05, Diarmuid McDonald [EMAIL PROTECTED] wrote: Hi Mark, Im not sure I understand what you mean by mutual authenticated SSL. I set to not be SSL enabled and it made no difference when tring to connect to https://localhost:9012/axis/ . i.e. Connector sshConnector = embedded.createConnector( (java.net.InetAddress) null, 9012, false); Could you elaborate as to how you got SSL working, or do you have sample code I could use -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: 08 June 2005 16:12 To: Tomcat Users List Subject: Re: Embedded Tomcat SSL I do not think that you need an SSL connector. I have an embedded tomcat working using mutual authenticated SSL and the connector is not SSL enabled. On 6/8/05, Diarmuid McDonald [EMAIL PROTECTED] wrote: Hi, Can anyone help me with regard to running Embedded Tomcat 5.5.9 with SSL. I found a mail archive before that has the same problem, however there is no resolution. http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg153661.html I have included my code and errors that I am receiving. Any help would be greatly appreciated Here is the code I am Using import java.io.File; .. .. import org.apache.tomcat.util.IntrospectionUtils; public class TestEmbededTomcat { public static void main( String args[] ) { Embedded embedded = new Embedded(); // set default logger and realm org.apache.log4j.BasicConfigurator.configure(); MemoryRealm memRealm = new MemoryRealm();
TagHandlerPool
I am using struts 1.2, Win XP and I am trying to upgrade the app/web server from jboss 3.2.3 with tomcat 4.1 to jboss 4.0.1 with tomcat 5.5 and I am getting this exception: java.lang.NullPointerException org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:108) login.login_jsp._jspx_meth_html_html_0(login_jsp.java:84) login.login_jsp._jspService(login_jsp.java:67) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) javax.servlet.http.HttpServlet.service(HttpServlet.java:697) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) I have serched for that exception but nothing helped me. I tried to put enablePooling = false in web.xml. I don´t know what I could do. Please help me. Thank. []s Alessandro. ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Utilizing Port 81 for Apache/Tomcat
I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: How to make tomcat work on a remote server?
Can anyone help me out here?? Im unable to access my jsp page on the net. I get internal server error. Im using included both mod_jk and mod_jk2 module, /var/logs/httpd/log shows that mod_jk2 starts but down below this module I loaded mod_jk module so it will support JkMount command in httpd.conf file. Can any one suggest m e the best method to access jsp pages on tomcat 4.1.17 either mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora box 2. Today I added JkMount line in httpd.conf and rest everything is same as my down files server.xml is as following Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=www.oursitename.com debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=www.oursitename.com debug=0 appBase=/home/httpd/vhosts/oursitename.com/httpdocs/ unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias/Host AliasOur IP/Alias /Engine /Service /Server -- httpd.conf file LoadModule jk2_module modules/mod_jk2.so LoadModule jk_module modules/mod_jk.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Include /usr/local/tomcat/conf/auto/mod_jk.conf VirtualHost Our IP:80 ServerName oursite.com:80 ServerAlias www.oursite.com UseCanonicalName On DocumentRoot /home/httpd/vhosts/oursite.com/httpdocs CustomLog /home/httpd/vhosts/oursite.com/statistics/logs/access_log combined ErrorLog /home/httpd/vhosts/oursite.com/statistics/logs/error_log Alias /trainer /home/httpd/vhosts/oursite.com/httpdocs/trainer JkMount /trainer/*.jsp ajp13 JkMount /trainer/adminjsp/*.jsp ajp13 Directory /home/httpd/vhosts/oursite.com/httpdocs/trainer/ Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Location /trainer/WEB-INF/* AllowOverride None deny from all /Location Location /trainer/META-INF/* AllowOverride None deny from all /Location Directory /home/httpd/vhosts/oursite.com/httpdocs/ Options None AllowOverride None /Directory --- workers.properties [logger.apache2] level=DEBUG [shm] file=/home/httpd/vhosts/oursite.com/tomcatlog size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:ourIP/*.jsp] worker=ajp13:localhost:8009 [uri:www.oursite.com/*.jsp] worker=ajp13:localhost:8009 -- __ 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: Utilizing Port 81 for Apache/Tomcat
U need to configure that in httpd.conf of new apapche instance change directive port regards Vijay [EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM: I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is Tomcat is an application server ?
To expand a bit on Richard's note ... On Tue, 2005-06-21 at 00:32 -0700, Richard Mixon (qwest) wrote: - Remoting implies distributing your objects across the network - a nice feature, but not often needed. Its talked about a lot - but for most applications its just not needed. J2EE is a standard that encompasses a large number of standards services, most of which are considered optional. JMS, for example, is not implemented in any commercial server directly. Instead, you must purchase a messaging system such as MQ series, (generally) a JNI wrapper code to talk to the message service, and a JMS wrapper that goes with the messaging system. This all plugs into the app server as a set of JAR files and a couple of native libraries. JTA is an extension that, likewise, is optional and pluggable. From my exposure, it also appears to be largely an evolving standard, in the sense that some of the things you would expect to support JTA don't quite do so. - Our Hibernate-based Tomcat application use Hibernate and jta.jar for transaction services and it works quite well. We have most of the advantages of declarative transaction demarcation. Hibernate demonstrates why EJB is an optional part of the J2EE specification. It is fully reasonable, during product design and exploratory coding, to unplug one persistence model and replace it with another. In the case of hibernate versus EJB 1 and 2, enough people did this that Hibernate has effectively displaced EJB's in much of the industry, and Hibernate is now the core of the EJB 3 specification. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Utilizing Port 81 for Apache/Tomcat
And also the port for ajp13 listener and worker.properties and server.xml .. Make sure that they don't clash with each other -Original Message- From: Anand Vijay [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:08 To: Tomcat Users List Subject: Re: Utilizing Port 81 for Apache/Tomcat U need to configure that in httpd.conf of new apapche instance change directive port regards Vijay [EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM: I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make tomcat work on a remote server?
Sorry could not get back to you earlier ... I think you are worker2.properties ... Remove LoadModule jk2_module modules/mod_jk2.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Your workers. Should be somehting like this .. .. http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html I will look into your problem from home .. Have emailed my home address ... Regards Guru -Original Message- From: sai krishna [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:06 To: Tomcat Users List Subject: RE: How to make tomcat work on a remote server? Can anyone help me out here?? Im unable to access my jsp page on the net. I get internal server error. Im using included both mod_jk and mod_jk2 module, /var/logs/httpd/log shows that mod_jk2 starts but down below this module I loaded mod_jk module so it will support JkMount command in httpd.conf file. Can any one suggest m e the best method to access jsp pages on tomcat 4.1.17 either mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora box 2. Today I added JkMount line in httpd.conf and rest everything is same as my down files server.xml is as following Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=www.oursitename.com debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=www.oursitename.com debug=0 appBase=/home/httpd/vhosts/oursitename.com/httpdocs/ unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias/Host AliasOur IP/Alias /Engine /Service /Server -- httpd.conf file LoadModule jk2_module modules/mod_jk2.so LoadModule jk_module modules/mod_jk.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Include /usr/local/tomcat/conf/auto/mod_jk.conf VirtualHost Our IP:80 ServerName oursite.com:80 ServerAlias www.oursite.com UseCanonicalName On DocumentRoot /home/httpd/vhosts/oursite.com/httpdocs CustomLog /home/httpd/vhosts/oursite.com/statistics/logs/access_log combined ErrorLog /home/httpd/vhosts/oursite.com/statistics/logs/error_log Alias /trainer /home/httpd/vhosts/oursite.com/httpdocs/trainer JkMount /trainer/*.jsp ajp13 JkMount /trainer/adminjsp/*.jsp ajp13 Directory /home/httpd/vhosts/oursite.com/httpdocs/trainer/ Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Location /trainer/WEB-INF/* AllowOverride None deny from all /Location Location /trainer/META-INF/* AllowOverride None deny from all /Location Directory /home/httpd/vhosts/oursite.com/httpdocs/ Options None AllowOverride None /Directory --- workers.properties [logger.apache2] level=DEBUG [shm] file=/home/httpd/vhosts/oursite.com/tomcatlog size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:ourIP/*.jsp] worker=ajp13:localhost:8009 [uri:www.oursite.com/*.jsp] worker=ajp13:localhost:8009 -- __ 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: got an error for a admi-entry
Am Montag, 20. Juni 2005 20:20 schrieb Steve Ochani: Hi, You don't have the admin rolename defined. Yes, this it was. Thank you. But I have now another Problem. Now I can login as a 'manager' but still cannot login as an admin. I have changed the tomcat-user.xml this way: [code] ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=Adminstrator password=blablabla roles=manager,admin/ user username=tomcat password=tomcat roles=tomcat/ user username=both password=tomcat roles=tomcat,role1/ user username=role1 password=tomcat roles=role1/ /tomcat-users [/code] And I got this dumped: [quote] HTTP Status 404 - /admin/j_security_check type Status report message /admin/j_security_check description The requested resource (/admin/j_security_check) is not available. Apache Tomcat/4.1 [/quote] But I really installed the tomcat4-admin-Packages of Debian. What is the problem now? Gruss Christian -- Christian Stalp Institut für Medizinische Biometrie, Epidemiologie und Informatik Johannes-Gutenberg-Universität Mainz Tel.: 06131 / 17-3107 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make tomcat work on a remote server?
From my experience Your DocumentRoot should be different to the appBase of your virtual host ... Set the document root to something else and try Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:45 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: How to make tomcat work on a remote server? Sorry could not get back to you earlier ... I think you are worker2.properties ... Remove LoadModule jk2_module modules/mod_jk2.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Your workers. Should be somehting like this .. .. http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html I will look into your problem from home .. Have emailed my home address ... Regards Guru -Original Message- From: sai krishna [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:06 To: Tomcat Users List Subject: RE: How to make tomcat work on a remote server? Can anyone help me out here?? Im unable to access my jsp page on the net. I get internal server error. Im using included both mod_jk and mod_jk2 module, /var/logs/httpd/log shows that mod_jk2 starts but down below this module I loaded mod_jk module so it will support JkMount command in httpd.conf file. Can any one suggest m e the best method to access jsp pages on tomcat 4.1.17 either mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora box 2. Today I added JkMount line in httpd.conf and rest everything is same as my down files server.xml is as following Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=www.oursitename.com debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=www.oursitename.com debug=0 appBase=/home/httpd/vhosts/oursitename.com/httpdocs/ unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias/Host AliasOur IP/Alias /Engine /Service /Server -- httpd.conf file LoadModule jk2_module modules/mod_jk2.so LoadModule jk_module modules/mod_jk.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Include /usr/local/tomcat/conf/auto/mod_jk.conf VirtualHost Our IP:80 ServerName oursite.com:80 ServerAlias www.oursite.com UseCanonicalName On DocumentRoot /home/httpd/vhosts/oursite.com/httpdocs CustomLog /home/httpd/vhosts/oursite.com/statistics/logs/access_log combined ErrorLog /home/httpd/vhosts/oursite.com/statistics/logs/error_log Alias /trainer /home/httpd/vhosts/oursite.com/httpdocs/trainer JkMount /trainer/*.jsp ajp13 JkMount /trainer/adminjsp/*.jsp ajp13 Directory /home/httpd/vhosts/oursite.com/httpdocs/trainer/ Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Location /trainer/WEB-INF/* AllowOverride None deny from all /Location Location /trainer/META-INF/* AllowOverride None deny from all /Location Directory /home/httpd/vhosts/oursite.com/httpdocs/ Options None AllowOverride None /Directory --- workers.properties [logger.apache2] level=DEBUG [shm] file=/home/httpd/vhosts/oursite.com/tomcatlog size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:ourIP/*.jsp] worker=ajp13:localhost:8009 [uri:www.oursite.com/*.jsp] worker=ajp13:localhost:8009 -- __ 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make tomcat work on a remote server?
Hey just got it Look at : http://www.junlu.com/msg/170819.html -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:04 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: How to make tomcat work on a remote server? From my experience Your DocumentRoot should be different to the appBase of your virtual host ... Set the document root to something else and try Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:45 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: How to make tomcat work on a remote server? Sorry could not get back to you earlier ... I think you are worker2.properties ... Remove LoadModule jk2_module modules/mod_jk2.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Your workers. Should be somehting like this .. .. http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html I will look into your problem from home .. Have emailed my home address ... Regards Guru -Original Message- From: sai krishna [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:06 To: Tomcat Users List Subject: RE: How to make tomcat work on a remote server? Can anyone help me out here?? Im unable to access my jsp page on the net. I get internal server error. Im using included both mod_jk and mod_jk2 module, /var/logs/httpd/log shows that mod_jk2 starts but down below this module I loaded mod_jk module so it will support JkMount command in httpd.conf file. Can any one suggest m e the best method to access jsp pages on tomcat 4.1.17 either mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora box 2. Today I added JkMount line in httpd.conf and rest everything is same as my down files server.xml is as following Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=www.oursitename.com debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=www.oursitename.com debug=0 appBase=/home/httpd/vhosts/oursitename.com/httpdocs/ unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias/Host AliasOur IP/Alias /Engine /Service /Server -- httpd.conf file LoadModule jk2_module modules/mod_jk2.so LoadModule jk_module modules/mod_jk.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Include /usr/local/tomcat/conf/auto/mod_jk.conf VirtualHost Our IP:80 ServerName oursite.com:80 ServerAlias www.oursite.com UseCanonicalName On DocumentRoot /home/httpd/vhosts/oursite.com/httpdocs CustomLog /home/httpd/vhosts/oursite.com/statistics/logs/access_log combined ErrorLog /home/httpd/vhosts/oursite.com/statistics/logs/error_log Alias /trainer /home/httpd/vhosts/oursite.com/httpdocs/trainer JkMount /trainer/*.jsp ajp13 JkMount /trainer/adminjsp/*.jsp ajp13 Directory /home/httpd/vhosts/oursite.com/httpdocs/trainer/ Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Location /trainer/WEB-INF/* AllowOverride None deny from all /Location Location /trainer/META-INF/* AllowOverride None deny from all /Location Directory /home/httpd/vhosts/oursite.com/httpdocs/ Options None AllowOverride None /Directory --- workers.properties [logger.apache2] level=DEBUG [shm] file=/home/httpd/vhosts/oursite.com/tomcatlog size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:ourIP/*.jsp] worker=ajp13:localhost:8009 [uri:www.oursite.com/*.jsp] worker=ajp13:localhost:8009 -- __ 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] - To unsubscribe, e-mail: [EMAIL
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
Can you replace that *:80m with something like host.com:80 or ip:80? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 3:54 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /usr/local/apache2/logs/jk-sa1.log JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkMount /* ajp13w /VirtualHost = workers.properties = # workers.properties.minimal - # # This file provides minimal jk configuration properties needed to # connect to Tomcat. # # The workers that jk should create and work with # worker.list=ajp13w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009k serverl.xml Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Resource
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
Did you start apache as root ? You need root access to start any service for ports less than 1024 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:17 To: 'Tomcat Users List' Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10 Can you replace that *:80m with something like host.com:80 or ip:80? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 3:54 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /usr/local/apache2/logs/jk-sa1.log JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkMount /* ajp13w /VirtualHost = workers.properties = # workers.properties.minimal - # # This file provides minimal jk configuration properties needed to # connect to Tomcat. # # The workers that jk should create and work with # worker.list=ajp13w # # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. # worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009k serverl.xml Server port=8005 shutdown=SHUTDOWN
RE: User authentication using Realms
Hey Frank, No the space seemed to make no difference. I tried it by replacing the space with an underscore and got the same result. Yes, I tested the DSN via my simple Java class and it works fine. The two methods I was talking about are as follows: Class.forName (sun.jdbc.odbc.JdbcOdbcDriver); // Use next two statements to connect directly to Access DB. String dbName = C:/Inetpub/wwwroot/SPID/db1.mdb; String dbConnStr = jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ= + dbName.trim () + ;DriverID=22;READONLY=true}; // OR // Use next statement to connect to Access DB via DSN. String dbURL = jdbc:odbc:Cost History; // dbConnection = DriverManager.getConnection (dbConnStr, , ); dbConnection = DriverManager.getConnection (dbURL, , ); I simply have the first method commented out. Notice the space in the DSN name I use in the class. It works just fine. It works when I use the Simple JSP DSN too. I was hoping for more responses to these questions, but Frank, you seem to be the only one who takes the time to try to help someone out. I have gotten no further in this endeavor. I've read more of the Tomcat documentation, but have found no more insight into how to actually DO it. It does no good to provide a collection of documents if they don't provide the material necessary to help someone USE what they spend so much time describing. It doesn't give me great confidence in these mailing list/newsgroup/bulletin board type venues. I've tried to make use of resources such as this in the past and found them to be next to useless, because I either got no responses, or the few I would receive were of no help at all. What good is it, if it does not help those who use it? Thanks, Joe -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, June 20, 2005 9:58 AM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: User authentication using Realms Glad to hear you got it working so far! :) Is your DSN name literally Simple JSP? If so, I suggest trying something without a space in it... I have a feeling it might not work with spaces in the name. Note that the exception you are getting is actually coming from Access, it is simply being passed through JDBC. So, as you try and Google for a solution, you can *almost* forget you are working in Java temporarily. Also, does your DSN actually work via the test function in the ODBC manager? I tend to assume you tried that already, but just making sure ;) Actually, it looks like your saying you have a test class that does connect via that DSN, is that correct? If so, ignore this suggestion! :) I notice you say your code can switch between two connection methods... is it possible that somehow it isn't switched to the DSN method and is trying to connect with the path you specified? That makes a little more sense with the exception you are seeing. Ok, that's all the shots in the dark I have right now :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, June 20, 2005 9:34 am, Gagnon, Joseph M \(US SSA\) said: I've finally (with lots of help) figured out how to do form-based user authentication of a simple test JSP webapp. So far, so good ... it seems to be working. However, the database is a list of roles and users currently defined in conf/tomcat-users.xml. While this worked fine while I was learning how to do this and finally get it up and running, this is definitely not the method I want to use for the real thing. So, I started looking around at some more of the Tomcat documentation and stumbled upon realms. This seems to be the vehicle to allow Tomcat to provide a better method of performing user authentication. The question now is: how do I make use of this? The docs refer to the set of built-in realm types that are available for use, but I don't understand the subtle differences between many of them. There don't seem to be any examples of how to use them. I don't know which ones should be used for different situations. I'm running on a PC with MS Access installed. This is the database (at least for now) that I intend to use. I have successfully accessed information from an Access DB using a Java class to create the connection and execute SQL statements. I've done only a very simple case at this point, just to demonstrate that I can do it successfully. The class actually has two possible methods of connection to the DB, one method defines the actual path to the DB file and a complex (and for the most part, not understood) connection string, the other method defines a URL in the following format: jdbc:odbc:DSN name. The DSN name was set up in the Windows ODBC data source administrator utility. The second method is the one I'm using at this point. I tried setting up a JDBCRealm realm to use an Access DB with two tables, one for user names and passwords, the other for user names and roles.
cannot format messages for consolehandler
I'm having problems formatting messages processed by the consolehandler. Using Tomcat 5.5.9 with jdk 1.5.0 on Windows XP. Since yesterday (see previous post about ConsoleHandler), I have re-installed fresh copy of Tomcat. I can modify other parts of the logging.properties file and see those changes (such as the .prefix entries, see below). But my change to the ConsoleHandler.formatter look to be ignored. Any ideas??? logging.properties: handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, 5host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler # Handler specific properties. # Describes specific configuration info for Handlers. 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs/l 1catalina.org.apache.juli.FileHandler.prefix = catalina4. 2localhost.org.apache.juli.FileHandler.level = FINE 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs/l 2localhost.org.apache.juli.FileHandler.prefix = localhost4. 3manager.org.apache.juli.FileHandler.level = FINE 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs/l 3manager.org.apache.juli.FileHandler.prefix = manager4. 4admin.org.apache.juli.FileHandler.level = FINE 4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs/l 4admin.org.apache.juli.FileHandler.prefix = admin4. 5host-manager.org.apache.juli.FileHandler.level = FINE 5host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs/l 5host-manager.org.apache.juli.FileHandler.prefix = host-manager4. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = com.rwd.log.learnTomcatLogFormatter.LearnTomcatLogFormatter My formatter: package com.rwd.log.learnTomcatLogFormatter; import java.util.Date; import java.util.logging.Formatter; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.SimpleFormatter; public class LearnTomcatLogFormatter extends Formatter { public synchronized String format(LogRecord _arg0) { String retval = Date[ + new Date(System.currentTimeMillis())+ ] Level[ + _arg0.getLevel() + ] Message[ + _arg0.getMessage() + ]; return retval; } }
Problem with apache 2.0.46 and jakarta connector 1.2.13
Hi, I'm having a very strange problem with the connector. It creates only one connection and after this it does not create any additional connections. In the mod_jk.log I only get : [Tue Jun 21 16:16:12 2005] [13609:34976] [debug] ajp_done::jk_ajp_common.c (2046): recycling connection cache slot=0 for worker ajp13 [Tue Jun 21 16:16:12 2005] [13609:34976] [debug] jk_handler::mod_jk.c (1959): Service finished with status=304 for worker=ajp13 [Tue Jun 21 16:16:12 2005] [13612:34976] [debug] map_uri_to_worker::jk_uri_worker_map.c (455): Attempting to map URI '/xxx/web/dlc_empty.jsp' from 1 maps [Tue Jun 21 16:16:12 2005] [13612:34976] [debug] map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to map context URI '/xxx/web/*' [Tue Jun 21 16:16:12 2005] [13612:34976] [debug] map_uri_to_worker::jk_uri_worker_map.c (481): Found a wildchar match ajp13 - /xxx/web/* After this, nothing... So the worker is found but no additional connections are made. It seems that the reusing of the connections does not work. Has anyone had any similar problems? Regards, Jarkka Kivikanta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
periodically servlet call
Hi all! I would like to configure Tomcat to run a specific servlet periodically (e.g. hourly). it's possible? where do I this config? thanks in advance!
RE: periodically servlet call
You may try a Job Scheduler like Quartz...servlets are not suitable for this. http://www.opensymphony.com/quartz/ Regards. Martín. -Mensaje original- De: Luciano Costa [mailto:[EMAIL PROTECTED] Enviado el: Martes, 21 de Junio de 2005 11:35 a.m. Para: tomcat-user@jakarta.apache.org Asunto: periodically servlet call Hi all! I would like to configure Tomcat to run a specific servlet periodically (e.g. hourly). it's possible? where do I this config? thanks in advance! -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 267.7.9 - Release Date: 20/06/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 267.7.9 - Release Date: 20/06/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.9 and jdk 1.4.2
Hello everybody... Maybe this issues is not new in the mailing list, I having problem to start tomcat 5.5.9, I got this error message in my netbeans output: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page. I could not see the compatibility package in the tomcat download page... how could I fix this problem? does anybody have the compatibility package url? Thanks -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
RE: Tomcat 5.5.9 and jdk 1.4.2
From: Carlos Bracho [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.9 and jdk 1.4.2 I could not see the compatibility package in the tomcat download page... http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi It's the download cleverly hidden under the name Compat... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.9 and jdk 1.4.2
You should upgrade your JRE Carlos Bracho said the following on 21/06/2005 8:23 PM: Hello everybody... Maybe this issues is not new in the mailing list, I having problem to start tomcat 5.5.9, I got this error message in my netbeans output: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page. I could not see the compatibility package in the tomcat download page... how could I fix this problem? does anybody have the compatibility package url? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.9 and jdk 1.4.2
You should be able to find it here. http://apache.bestwebcover.com/jakarta/tomcat-5/v5.5.9/bin/ -SB -Original Message- From: Carlos Bracho [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:53 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.5.9 and jdk 1.4.2 Hello everybody... Maybe this issues is not new in the mailing list, I having problem to start tomcat 5.5.9, I got this error message in my netbeans output: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page. I could not see the compatibility package in the tomcat download page... how could I fix this problem? does anybody have the compatibility package url? Thanks -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possibly a dumb question.
Am I wrong in thinking that I may get better performance from Tomcat by building it from source rather than using a binary? My thought is that I will be able to more tightly integrate the connector and Tomcat by doing this... Also is anyone doing this...I seem to be getting actively refused by the Tomcat cvs server when trying to run Ant with the provided build.xml TIA -SB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
sa1.tomcat.fr:80 in apache Virtual Host section doesn't change anything. I start apache as root. I think that apache routes the query through mod_jk because logs are in the file given by JkLogFile directive. But mod_jk is not able to open a socket with tomcat on port 8009. There is no log of mod_jk connections tries in tomcat logs. Direct connection to TC in HTTP server mode on 8080 works fine. Access to statics files in apache also works fine. I can already thank you for your efforts. +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Raghupathy,Gurumoorthy [EMAIL PROTECTED] a écrit sur 21/06/2005 15:19:56 : Did you start apache as root ? You need root access to start any service for ports less than 1024 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:17 To: 'Tomcat Users List' Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10 Can you replace that *:80m with something like host.com:80 or ip:80? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 3:54 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties JkLogFile /usr/local/apache2/logs/jk-sa1.log JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT JkMount
Re: periodically servlet call
You can also start/stop a 'standard' java.util.Timer in your ServletContextListener. This will only work correctly on a single server, not a cluster with multiple servers, depending on what the task(s) do. I've used this on single server installations without any problems. --- Luciano Costa [EMAIL PROTECTED] wrote: Hi all! I would like to configure Tomcat to run a specific servlet periodically (e.g. hourly). it's possible? where do I this config? thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Possibly a dumb question.
From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:[EMAIL PROTECTED] Subject: Possibly a dumb question. Am I wrong in thinking that I may get better performance from Tomcat by building it from source rather than using a binary? Yes, you're wrong - unless you happen to have a truly miraculous optimizing Java compiler at your disposal. However, real Java performance largely depends on the quality of the JIT buried inside the JVM you're using. My thought is that I will be able to more tightly integrate the connector and Tomcat by doing this... No idea which connector you're referring to, but your building of the relevant products can't really be any different than the developers' builds, can it? If you're referring to the AJP connector between Apache httpd and Tomcat, you might want to try just eliminating httpd - Peter Lin's recent testing shows that current versions of Tomcat are nearly the equal of httpd for delivering static content, and removing the front end eliminates that overhead for dynamic pages. - 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: Differences between service startup and batch startup
I tried checking the box to allow interaction with the desktop, but it didn't seem to make a difference. It's just so strange that it works completely fine when started from the batch file, but not the service? John --- Jason Bainbridge [EMAIL PROTECTED] wrote: On 6/20/05, John Lindley [EMAIL PROTECTED] wrote: I have noticed a difference between starting Tomcat 5.0.28 using the service and the batch file. When I run startup.bat, everything seems to be running fine. I have an ODBC node defined, connecting to an Access database, and I have no trouble retrieving the data through Tomcat. However, when I start Tomcat using the Windows service, Tomcat comes up without any errors, but I cannot retrieve the data from the database. I get the following error: 2005-06-18 23:13:06 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception com.borland.dx.dataset.DataSetException: General error May be you need to check the Allow interact with desktop (or whatever it is) option on the Logon details for the Windows Service? Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:include and in-server forward from included resource
Hello! I sent this message to dev list a week ago and did not get an answer, so I thought that I might come across someone in the user list, who might help me. I also had raised this question about three months ago, and was assured by a member of dev group, that my concerns would be shared with JSP spec group, so I would like to check on the progress. In short, I want to make a change in JSP spec, and I don't know where should I address my concern. Tomcat is a reference implementation of JSP spec, so I thought this might be a right place. I cannot comment on JSR53 either. Here is my situation: I have a resource, included in JSP page. The included resource (in my case a struts action, but this does not matter) performs in-server forward (or redirect and then forward) to a location with actual content (in my case it is JSP page). The problem I am having is that response stream is closed after my included resource is processed, and the rest part of parent page is not processed. I was pointed to the spec: JSP version 2.4, section 8.4 reads: Before the forward method of the RequestDispatcher interface returns, the response content must be sent and committed, and closed by the servlet container. I would like it to be updated to something like this: Before the forward method of the RequestDispatcher interface returns, the response content must be sent and committed, and closed by the servlet container, IF REQUEST WAS NOT INCLUDED INTO ANOTHER REQUEST. Here is the reason: I want to be able to create components in JSP using jsp:include. I want to be able to include serlvets or Struts actions or other request-processing modules, which then would forward to actual content - a result page, which would become a piece in the main page. And I want to separate the modules. But I cannot apply clean MVC model using current JSP spec, because included resource must generate output itself, and must not perform a forward. Tomcat is a reference implementation of JSP spec, and it does not behave like I want. On the other hand, Resin and Jetty work pretty much how I expected. It would be great if Tomcat could do this too. Maybe with some kind of switch or setting. If anyone from this group has a chance to influence JSP spec, or can point me the direction where I can address my concerns, I would be grateful for help. Thanks, Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
running tomcat on port 80
Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Is it unix / linux box ? Then yo need to be root when you start tomcat -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 17:47 To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Shouldn't be any problems. Are you sure there are not other programs bound to 80? Try netstat -a in the dos window. -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 9:47 AM To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running tomcat on port 80
Or it is possible that something else is running on port 80 - possibly a webserver. U can use the netstat command to check/verify this. HTH, Anoop On 6/21/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Is it unix / linux box ? Then yo need to be root when you start tomcat -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 17:47 To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running tomcat on port 80
Permission denied means you are running it with non-root user. Normal user can not bind to port 80. Thanks, Mandar -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 21, 2005 12:47 PM To: tomcat-user@jakarta.apache.org Subject: running tomcat on port 80 Hi, Can I run Tomcat 5.0 on port 80? I do not want my visitor have to type the port number. After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Utilizing Port 81 for Apache/Tomcat
In addition to the answers u have got!! IMO - it would be best (and safe) if you use ports 1024 and up. ports lesser than 1024 are used for system level tasks and there is a greater possibility of clashing with them. U have 1025 until 64000 (I think) ports to choose from.. -Anoop On 6/21/05, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: And also the port for ajp13 listener and worker.properties and server.xml .. Make sure that they don't clash with each other -Original Message- From: Anand Vijay [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:08 To: Tomcat Users List Subject: Re: Utilizing Port 81 for Apache/Tomcat U need to configure that in httpd.conf of new apapche instance change directive port regards Vijay [EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM: I am running Apache 1.3 and Tomcat 3.3 currently in my production environment. I want to test Apache 2.0 and Tomcat 5.5 in the same environment and ensure that all the virtual hosts which I am accessing are in fact accessible through that configuration. In order to do this, I must keep the current versions running as it is production environment. For the newer setup, I would like to utilize Port 81for testing purposes. Can anyone explain how I would do that by changing which configurations and which files and how I would actually test it in that setup? Also, are there any other things I should be aware of in this situation? Thanks. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks and best regards, Anoop - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering: Slow session creation
I have been having a problem with clustered sessions in Tomcat 5.5.7. I am using the pooled replication mode, but I have also tried asynchronous mode. Right now there is one machine, the other machine is down. I would have assumed that machine one would have seen that machine two is down and not bothered to try to replicate the session, but it appears as if it is trying to communicate anyway... org.apache.catalina.connector.RequestFacade.getSession(boolean) org.apache.catalina.connector.Request.getSession(boolean) org.apache.catalina.connector.Request.doGetSession(boolean) org.apache.catalina.cluster.session.DeltaManager.createSession() org.apache.catalina.cluster.session.DeltaManager.createSession(boolean) org.apache.catalina.cluster.session.DeltaManager.getNewDeltaSession() org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(ClusterMessage) org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(ClusterMessage, Member) java.io.ObjectOutputStream.writeObject(Object) org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(Strin g, byte[]) org.apache.catalina.cluster.io.XByteBuffer.createDataPackage(byte[]) org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(S tring, byte[], IDataSender) org.apache.catalina.cluster.tcp.PooledSocketSender.sendMessage(String, byte[]) org.apache.catalina.cluster.tcp.SocketSender.sendMessage(String, byte[]) org.apache.catalina.cluster.tcp.SocketSender.connect() java.net.Socket.init(InetAddress, int) ...it looks like the ReplicationTransmitter is trying to send a message, which hangs until the socket times out. Where can I set the timeout for this? 20 seconds seems long, 2 seconds would probably be more appropriate. I enabled DEBUG messages for the cluster component, but this is all I get in the logs... [2005-06-21 13:53:38,281 DEBUG] [org.apache.catalina.cluster.session.DeltaManager] Manager (/xyz) send new session (6359D20C5E68DE71BB557443724A0218) [2005-06-21 13:53:59,406 DEBUG] [org.apache.catalina.cluster.session.DeltaManager] Created a DeltaSession with Id[6359D20C5E68DE71BB557443724A0218] Total count=1 ...no other information about why an attempt is made to create the socket and why it takes so long to timeout. I've sort of solved the problem by disabling clustering, but I would like to get it working at some point. Any ideas? Thanks, Bernard Durfee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tc 5.5.x subdirectory contexts?
hihi all, i'm using Tomcat 5.5.9 and i can't figure out how to setup a URL like this: http://localhost:8080/subdirectory/myapp in the $CATALINA_HOME/conf/[enginename]/[hostname] directory i have placed myapp.xml but that only works with the following: http://localhost:8080/myapp i tried setting the path attribute of my context with a value of /subdirectory/myapp but it didn't work. (actually, this path attribute seems to be ignored... the context element filename is what seems to be followed by Tomcat) i also tried creating a $CATALINA_HOME/conf/[enginename]/[hostname]/subdirectory folder and placing myapp.xml there but that doesn't work either. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html doesn't seem to have info on how to do this. anyone know? thanks in advance, woodchuck __ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Explicitly close ServletOutputStream?
If you use response.getOutputStream() to get an output stream for binary data such as PDF or images, do you need to explicitly close that stream when you are done writing to it or does the servlet container do it for you automatically? Thanks, August - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
debugging tomcat itself with netbeans
Hi all, I'm trying to debug tomcat itself v5.5.9 using netbeans 4.1 without much luck. I'm able to attach to a running instance of tomcat using JPDA, but then my breakpoints are activated erraticaly. Did someone try this before? These are the things I did: -compiled tomcat 5.5.9 with a build.properties file containing: compile.debug=on compile.deprecation=off compile.optimize=off debuglevel=lines,vars,source -I added all .java files into a new netbeans project (I created a new project with the option new project with existing java source files or sthg like that) -I run tomcat using the command /bin/catalina.sh jpda start -I attach to the instance of tomcat running with netbeans -I set the breakpoints by toggling them into the .java source files I added on netbeans. Sometimes I do this from the Files window, and sometimes from the Projects windows. Here I'm not sure what's the right way to go. Any help with this would be much appreciated. If anyone has sucessfully debugged tomcat with another debugger, please let me know also. Thanks in advance. bye! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10
Can you JkLoglevel debug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 11:05 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10 sa1.tomcat.fr:80 in apache Virtual Host section doesn't change anything. I start apache as root. I think that apache routes the query through mod_jk because logs are in the file given by JkLogFile directive. But mod_jk is not able to open a socket with tomcat on port 8009. There is no log of mod_jk connections tries in tomcat logs. Direct connection to TC in HTTP server mode on 8080 works fine. Access to statics files in apache also works fine. I can already thank you for your efforts. +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Raghupathy,Gurumoorthy [EMAIL PROTECTED] a écrit sur 21/06/2005 15:19:56 : Did you start apache as root ? You need root access to start any service for ports less than 1024 -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:17 To: 'Tomcat Users List' Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10 Can you replace that *:80m with something like host.com:80 or ip:80? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 21, 2005 3:54 AM To: Tomcat Users List Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 I'm sorry for the flood but as I'm new to this list, I wondered why I did not receive back the message I posted. So now, I suppose its a rule in ezmlm. Sorry again. Phillip, I applied your suggestions with no more success. As my test environment is on a sigle machine for apache and tomcat, it's difficult to check if mod_jk try to open a connection with TC. A truss off httpd don't show any socket stuff with TC. I wonder compilation stuff is OK. apache: ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl --with-mpm=worker tomcat: ./configure --with-apxs=/usr/local/apache2/bin/apxs +--+ Pierre Lebrun / ARTIC tel 02 31 32 45 36 fax 02 31 62 04 65 +--+ Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 : Please do not post same question three times. Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a typo in your workers.properties. worker.ajp13w.port=8009k Change this JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT to JkAutoAlias /usr/local/jakarta-tomcat-5.5.9/webapps/ You need to unmount /favicon too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 20, 2005 6:10 AM To: Tomcat Users List Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 10 Hi, I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and ajp13 on Solaris 10. I followed docs from tomcat website and the excellent best practices from Mladen Turk with no more success. mod_jk says it cannot find a worker for the worker name of httpd.conf and return error 500 Apache is compiled with MPM worker with all modules enabled Here under are log and config files. I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk. Thanks for your help Pierre Log from mod_jk = [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/favicon.ico' from 1 maps [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI '/*' [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match ajp13w - /* [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w [Mon Jun 20 11:55:33 2005] [4832:0027] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13w == = VH conf in HTTPD.CONF = NameVirtualHost *:80 VirtualHost *:80 ServerNamesa1.tomcat.fr ServerAlias sa1 DocumentRoot
Location of backwards compatibility patch
Hello friends. I'm curious if anyone can guide me to the Tomcat compatibility patch that will allow me to run Tomcat 5.5 under jdk 142_05. I spent some time on the jakarta site but was unable to locate the file. Thank you in advance. Brian Scott Database Analyst 850 891 5696 850 322 2410 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of backwards compatibility patch
On 6/21/05, Scott, Brian [EMAIL PROTECTED] wrote: Hello friends. I'm curious if anyone can guide me to the Tomcat compatibility patch that will allow me to run Tomcat 5.5 under jdk 142_05. I spent some time on the jakarta site but was unable to locate the file. Thank you in advance. look for a suffix of -compat on the download page right where you got 5.5 from. I really can't see how many people can't see that along with the admin package, maybe we should make the link blink. :P regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Location of backwards compatibility patch
On 6/21/05, Scott, Brian [EMAIL PROTECTED] wrote: Hello friends. I'm curious if anyone can guide me to the Tomcat compatibility patch that will allow me to run Tomcat 5.5 under jdk 142_05. I spent some time on the jakarta site but was unable to locate the file. Thank you in advance. Its not a patch, its a few files that allow for this backward compat. I belive this is what you are looking for: http://www.mirrormonster.com/apache.org/jakarta/tomcat-5/v5.5.9/bin/jakarta-tomcat-5.5.9-compat.tar.gz The page it is on is: http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi Its called: 5.5.9 Compat tar.gz Hope this helps, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Location of backwards compatibility patch
From: Scott, Brian [mailto:[EMAIL PROTECTED] Subject: Location of backwards compatibility patch I'm curious if anyone can guide me to the Tomcat compatibility patch that will allow me to run Tomcat 5.5 under jdk 142_05. (Second time this has come up today. Why is this so hard for some people?) http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi It's the download cleverly hidden under the name Compat... - 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]
Move Webapps to a different path using Tomcat 4 with IIS
I am a novice with Tomcat 4. We have it running as a service on Windows 2003, and are using Tomcat with IIS 6. It works fine using the default installation. However, I would like to move the Webapps from the current default path (CATALINA_HOME\WEBAPPS) to a different path on a different drive - let's say D:\DATA. I would still prefer to run the webserver from the default installation directory, as I only want to move the webapps to serve them from another location. What steps do I need to take to accomplish this? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generate dynamic form with jsp
Hello everybody... I am writting because I am working in a tabla maintanance database application, the thing is, clicking on a database's table name show all the rows and you can edit, delete or add rows. The form to add or edit must be created dynamically and of course the way you display the table rows. Do you know any framework or any custom tag that could helps me? Thanks -- -- Carlos J, Bracho M. -- e-mail: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] +58 416 409 21 75 --
JNDI Bean problem - Tomcat 5.0.28
Trying to get a bean through a JNDI context: My context.xml in the META-INF directory entry is: Context path=/apppath Resource name=bean/properties type=com.ifx.ric.dwh.bean.PropertiesBean auth=Container/ ResourceParams name=bean/properties parameter namefactory/name valueorg.apache.naming.factory.BeanFactory/value /parameter /ResourceParams /Context My web.xml in META-INF: resource-env-ref description JNDI bean for application properties /description resource-env-ref-name bean/properties /resource-env-ref-name resource-env-ref-type com.ifx.ric.dwh.bean.PropertiesBean /resource-env-ref-type /resource-env-ref My servlet JNDI lookup: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); PropertiesBean bean = (PropertiesBean) envCtx.lookup(bean/properties); But the Exception is: Cannot create resource instance __ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getRemoteUser() always returns null
I'm currently using tomcat with the apache connector. I use apache to authenicate the user and then allow them to access certain servlets in tomcat. My problem is that when I call getRemoteUser in the servlet, it always returns null even though I was authenticated through apache. I'm assuming that it's because the request isn't sending the Authorization Header to tomcat. How do I get it? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Just testing please ignore it.
Sincerely yours, br br br br br Kam Lung Leung br Presidentbr strong Advanced Voice Technologies, Inc.br /strong strong A href=http://www.advoicetech.com; target=_blankwww.advoicetech.com /A /strongbr strongOffice:/strong 303.539.2950br strongFax:/strong 303.539.2951br strongOur business is to bring your clients to you by personalized voice messaging. br/strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't rename a file using renameTo()
Hi, I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to /someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running. However, it false to rename the /tmp/oldFile to /someDirectory/newFile when the Servlet-A run (within the jakarta-tomcat-4.1.30) in a Red Hat Linux 7.2 server box that also has jboss-3.2.1_tomcat-4.1.24 running. I thought it may be privilege issue so I set the /someDirectory directory with “chmod –R 777” and run Tomcat as a root user. But, it is still false to rename the /tmp/oldFile file to the /someDirectory/newFile. The strange thing is that the Servlet-A was able to write the oldFile to the /tmp directory but can not rename the oldFile to the /someDirectory directory that was allowed for writing for ALL user levels. Can this be Jboss prevented the rename operation. I used the canRead and canWrite to check allowable action by the File. It turns out that the Servlet-A can read and write the /tmp/ oldFile. But the Servlet-A can’t read or write the /someDirectory/newFile. The strangest thing is that when the Servlet-A runs in a Red Hat Linux 7.2 server that has ONLY jakarta-tomcat-4.1.30 running, the condition of canRead and canwrite are the same. Meaning that the Servlet-A was able to read, and write the oldFile. But can’t read, and write the newFile. However, the renameTo() method returned true and the Servlet-A was able to rename the /tmp/oldFile into /someDirectory/newFile. Any help in this issue is greatly appreciated. Kam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't rename a file using renameTo()
On 6/21/05, Kam Lung Leung [EMAIL PROTECTED] wrote: Hi, I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to /someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running. However, it false to rename the /tmp/oldFile to /someDirectory/newFile when the Servlet-A run (within the jakarta-tomcat-4.1.30) in a Red Hat Linux 7.2 server box that also has jboss-3.2.1_tomcat-4.1.24 running. I thought it may be privilege issue so I set the /someDirectory directory with chmod –R 777 and run Tomcat as a root user. But, it is still false to rename the /tmp/oldFile file to the /someDirectory/newFile. The strange thing is that the Servlet-A was able to write the oldFile to the /tmp directory but can not rename the oldFile to the /someDirectory directory that was allowed for writing for ALL user levels. Can this be Jboss prevented the rename operation. I used the canRead and canWrite to check allowable action by the File. It turns out that the Servlet-A can read and write the /tmp/ oldFile. But the Servlet-A can't read or write the /someDirectory/newFile. The strangest thing is that when the Servlet-A runs in a Red Hat Linux 7.2 server that has ONLY jakarta-tomcat-4.1.30 running, the condition of canRead and canwrite are the same. Meaning that the Servlet-A was able to read, and write the oldFile. But can't read, and write the newFile. However, the renameTo() method returned true and the Servlet-A was able to rename the /tmp/oldFile into /someDirectory/newFile. It took me a few reads to even come close to following all that but is it possibly that you are trying to copy a subdirectory within /tmp to a subdirectory of /someDirectory that doesn't exist? -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com
TOMCAT AND APACHE question
Hey guys, I was wondering if anybody has seen an intermittent communication error between Apache web server and Tomcat. We were seeing something happening intermittently about every 15-30 minutes where the apache logs were showing something like this: [Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: error reading status line from remote server MY IP ADDRESS, referer: https://blah.blah.blah/blah/blah.do [Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: Error reading from remote server returned by /blah/blah.do, referer: https://blah.blah.blah/blah/blah.do And neither the tomcat logs nor the tomcat access logs actually showed any entries around this time. Amarish NOTE: THIS DOCUMENT MAY CONTAIN CONFIDENTIAL AND NONPUBLIC INFORMATION. IT IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL(S) OR ENTITY(IES) NAMED ABOVE, AND OTHERS SPECIFICALLY AUTHORIZED TO RECEIVE IT. If you are not the intended recipient of this document, you are notified that any review, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify me immediately by return email, delete the electronic message and destroy any printed copies. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat con pooling to Oracle RAC
Frank W. Zammetti wrote: Yep, I had a coworker suggest using the OCI driver as well... And you have to use the right JDBC driver as well. At least up to the 9.* timeframe, Oracle used to release two JDBC drivers: one was a thin-only driver with its JDBC distribution, and one was the full thick driver, both of which were approximately the same size, and both called ojdbc14.jar. (Just to confuse things). But the thin-only driver could not use the OCI library. I'm not sure if the situation has changed in 10.*. I do know that the JDBC driver in the Oracle InstantClient distribution is a full thick-and-thin driver, and comes bundled with the OCI libraries to boot.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't rename a file using renameTo()
Hi Jason, Thank you for the information. It is a long paragraph. I checked the /SomeDirectory again, and it is the same name. I was able to create directory with the mkdir -p /SomeDirectory/firstSubdirectory/secondSubdirectory and manually created a file by this command touch /SomeDirectory/firstSubdirectory/secondSubdirectory/newFile . The Servlet was able to create directories under the /SomeDirectory directory. For example, the Servlet was able to create /SomeDirectory/firstSubdirectory/secondSubdirectory directories. But the Servlet can’t rename the file named oldFile under the /tmp directory to /SomeDirectory/firstSubdirectory/secondSubdirectory/newFile. The Servlet did created all directories under the /SomeDirectory by not able to move the oldFile to the that directory. The same code work fines what it run without the Jboss running in the same server. Kam Jason Bainbridge [EMAIL PROTECTED] wrote: On 6/21/05, Kam Lung Leung [EMAIL PROTECTED] wrote: Hi, I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to /someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running. However, it false to rename the /tmp/oldFile to /someDirectory/newFile when the Servlet-A run (within the jakarta-tomcat-4.1.30) in a Red Hat Linux 7.2 server box that also has jboss-3.2.1_tomcat-4.1.24 running. I thought it may be privilege issue so I set the /someDirectory directory with chmod –R 777 and run Tomcat as a root user. But, it is still false to rename the /tmp/oldFile file to the /someDirectory/newFile. The strange thing is that the Servlet-A was able to write the oldFile to the /tmp directory but can not rename the oldFile to the /someDirectory directory that was allowed for writing for ALL user levels. Can this be Jboss prevented the rename operation. I used the canRead and canWrite to check allowable action by the File. It turns out that the Servlet-A can read and write the /tmp/ oldFile. But the Servlet-A can't read or write the /someDirectory/newFile. The strangest thing is that when the Servlet-A runs in a Red Hat Linux 7.2 server that has ONLY jakarta-tomcat-4.1.30 running, the condition of canRead and canwrite are the same. Meaning that the Servlet-A was able to read, and write the oldFile. But can't read, and write the newFile. However, the renameTo() method returned true and the Servlet-A was able to rename the /tmp/oldFile into /someDirectory/newFile. It took me a few reads to even come close to following all that but is it possibly that you are trying to copy a subdirectory within /tmp to a subdirectory of /someDirectory that doesn't exist? -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a kind of EJB container in Tomcat?
On Mon, Jun 20, 2005 at 05:50:47PM -0700, Wendy Smoak wrote: From: Kevin Kang (CSS) [EMAIL PROTECTED] I still have an issue about OpenEJB. 1. Is it an independent EJB Server for Tomcat? Is it necessary to install in Tomcat as a module or something else? This page gives various options for configuring OpenEJB with Tomcat: http://www.openejb.org/tomcat.html Careful with that page as it references 1.0 which is days away from being cut. In 0.9.2 you can embbed OpenEJB so that the ejbs are shared by all webapps (kind of like a big ear). The tomcat.html file inside the 0.9.2 release is far better for getting started. In 1.0 you can do that or have one instance of OpenEJB per webapp, e.g. you get your own private ejb container right there in your webapp classloader that no one else can mess with. You can't do both at the same time yet, though it would be easy for us to add that support. We chose not to just yet as it would require you to have a clear understanding of tomcat classloading. -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is Tomcat is an application server ?
On 6/21/05, David Johnson [EMAIL PROTECTED] wrote: To expand a bit on Richard's note ... On Tue, 2005-06-21 at 00:32 -0700, Richard Mixon (qwest) wrote: - Remoting implies distributing your objects across the network - a nice feature, but not often needed. Its talked about a lot - but for most applications its just not needed. J2EE is a standard that encompasses a large number of standards services, most of which are considered optional. JMS, for example, is not implemented in any commercial server directly. Instead, you must purchase a messaging system such as MQ series, (generally) a JNI wrapper code to talk to the message service, and a JMS wrapper that goes with the messaging system. This all plugs into the app server as a set of JAR files and a couple of native libraries. JTA is an extension that, likewise, is optional and pluggable. From my exposure, it also appears to be largely an evolving standard, in the sense that some of the things you would expect to support JTA don't quite do so. - Our Hibernate-based Tomcat application use Hibernate and jta.jar for transaction services and it works quite well. We have most of the advantages of declarative transaction demarcation. Hibernate demonstrates why EJB is an optional part of the J2EE specification. It is fully reasonable, during product design and exploratory coding, to unplug one persistence model and replace it with another. In the case of hibernate versus EJB 1 and 2, enough people did this that Hibernate has effectively displaced EJB's in much of the industry, and Hibernate is now the core of the EJB 3 specification. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] There is no meaning in saying that one can plug in required services to Tomcat. My question is by design is it an application server ?. My opinion is that Tomcat in the shipped form is not an application server. At the minimum it should provide transaction and persistence services, method level security is also preferred. One can add all the above mentioned features to any servlet engine by deploying JAR files of the required services(JNDI,JTA,persistence and even EJB). So any servlet engine becomes an application server. Am I right ? -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is Tomcat is an application server ?
On 6/21/05, Anto Paul [EMAIL PROTECTED] wrote: On 6/21/05, David Johnson [EMAIL PROTECTED] wrote: To expand a bit on Richard's note ... On Tue, 2005-06-21 at 00:32 -0700, Richard Mixon (qwest) wrote: - Remoting implies distributing your objects across the network - a nice feature, but not often needed. Its talked about a lot - but for most applications its just not needed. J2EE is a standard that encompasses a large number of standards services, most of which are considered optional. JMS, for example, is not implemented in any commercial server directly. Instead, you must purchase a messaging system such as MQ series, (generally) a JNI wrapper code to talk to the message service, and a JMS wrapper that goes with the messaging system. This all plugs into the app server as a set of JAR files and a couple of native libraries. JTA is an extension that, likewise, is optional and pluggable. From my exposure, it also appears to be largely an evolving standard, in the sense that some of the things you would expect to support JTA don't quite do so. - Our Hibernate-based Tomcat application use Hibernate and jta.jar for transaction services and it works quite well. We have most of the advantages of declarative transaction demarcation. Hibernate demonstrates why EJB is an optional part of the J2EE specification. It is fully reasonable, during product design and exploratory coding, to unplug one persistence model and replace it with another. In the case of hibernate versus EJB 1 and 2, enough people did this that Hibernate has effectively displaced EJB's in much of the industry, and Hibernate is now the core of the EJB 3 specification. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] There is no meaning in saying that one can plug in required services to Tomcat. My question is by design is it an application server ?. My opinion is that Tomcat in the shipped form is not an application server. At the minimum it should provide transaction and persistence services, method level security is also preferred. One can add all the above mentioned features to any servlet engine by deploying JAR files of the required services(JNDI,JTA,persistence and even EJB). So any servlet engine becomes an application server. Am I right ? I think you are getting your terms mixed up... Your arguments could be used in regards to a full J2EE container, which Tomcat isn't on it's own but an application server just needs to serve applications and Tomcat certainly does that. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to make tomcat work on a remote server?
Thank You Mr. Gurumoorthy, Sorry I couldnt reply You back as it was already late night here I went away from my desk. Thank you for the urls, But couldnt get what us this below url for? Is it for testing whether my server is running tomcat or not? Hope Im right http://www.junlu.com/msg/170819.html Thank You once again. Ill get back to u as soon as it runs. Sai Krishna --- Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: Hey just got it Look at : http://www.junlu.com/msg/170819.html -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 14:04 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: How to make tomcat work on a remote server? From my experience Your DocumentRoot should be different to the appBase of your virtual host ... Set the document root to something else and try Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:45 To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: How to make tomcat work on a remote server? Sorry could not get back to you earlier ... I think you are worker2.properties ... Remove LoadModule jk2_module modules/mod_jk2.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Your workers. Should be somehting like this .. .. http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html I will look into your problem from home .. Have emailed my home address ... Regards Guru -Original Message- From: sai krishna [mailto:[EMAIL PROTECTED] Sent: 21 June 2005 13:06 To: Tomcat Users List Subject: RE: How to make tomcat work on a remote server? Can anyone help me out here?? Im unable to access my jsp page on the net. I get internal server error. Im using included both mod_jk and mod_jk2 module, /var/logs/httpd/log shows that mod_jk2 starts but down below this module I loaded mod_jk module so it will support JkMount command in httpd.conf file. Can any one suggest m e the best method to access jsp pages on tomcat 4.1.17 either mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora box 2. Today I added JkMount line in httpd.conf and rest everything is same as my down files server.xml is as following Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Apache defaultHost=www.oursitename.com debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Access log processes all requests for this virtual host. -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Host name=www.oursitename.com debug=0 appBase=/home/httpd/vhosts/oursitename.com/httpdocs/ unpackWARs=true autoDeploy=true Aliaslocalhost/Alias Aliaswww/Alias/Host AliasOur IP/Alias /Engine /Service /Server -- httpd.conf file LoadModule jk2_module modules/mod_jk2.so LoadModule jk_module modules/mod_jk.so Include /usr/local/tomcat/conf/auto/mod_jk2.conf Include /usr/local/tomcat/conf/auto/mod_jk.conf VirtualHost Our IP:80 ServerName oursite.com:80 ServerAlias www.oursite.com UseCanonicalName On DocumentRoot /home/httpd/vhosts/oursite.com/httpdocs CustomLog /home/httpd/vhosts/oursite.com/statistics/logs/access_log combined ErrorLog /home/httpd/vhosts/oursite.com/statistics/logs/error_log Alias /trainer /home/httpd/vhosts/oursite.com/httpdocs/trainer JkMount /trainer/*.jsp ajp13 JkMount /trainer/adminjsp/*.jsp ajp13 Directory /home/httpd/vhosts/oursite.com/httpdocs/trainer/ Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Location /trainer/WEB-INF/* AllowOverride None deny from all /Location Location /trainer/META-INF/* AllowOverride None deny from all /Location Directory /home/httpd/vhosts/oursite.com/httpdocs/ Options None AllowOverride None /Directory --- workers.properties [logger.apache2] level=DEBUG [shm] file=/home/httpd/vhosts/oursite.com/tomcatlog size=1048576 # Example socket channel, override port and host. [channel.socket:localhost:8009] port=8009 host=127.0.0.1 # define the worker [ajp13:localhost:8009]