Re: question about mod_jk2 and workers2,properties

2005-12-06 Thread Mladen Turk
Robert Palmer wrote: Could somebody help with a question about how to configure workers2.properties. I have domains www.domain1.com and www.domain2.com. I would suggest that you use mod_jk instead mod_jk2. mod_jk2 is deprecated and there was no active support or development for almost two

RE: JSP on apache

2005-12-06 Thread mukesh
Hi, I have tried all the option given in http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I could not build the jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so (renamed as mod_jk.so). if I run make command then following message appears make:

Re: JSP on apache

2005-12-06 Thread Tim Funk
If you are using tomcat 5.5 - do not refer to the tomcat 3 docs ;) http://tomcat.apache.org/connectors-doc/ http://tomcat.apache.org/faq/ -Tim mukesh wrote: Hi, I have tried all the option given in http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I could not build the

Re: question about mod_jk2 and workers2,properties

2005-12-06 Thread Robert Palmer
I'd given that a try and compiled the sources (I coulddn't figure out where to get mod_jk.so from in the binaries). When I restart Apache with the LoadModule statement I get, Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: undefined symbol: ap_null_cleanup

Re: question about mod_jk2 and workers2,properties

2005-12-06 Thread Mladen Turk
Robert Palmer wrote: I'd given that a try and compiled the sources (I coulddn't figure out where to get mod_jk.so from in the binaries). When I restart Apache with the LoadModule statement I get, Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: undefined

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Tim Funk
What tomcat version and commands are you using? IIRC - jspf files by default are not precompiled. -Tim Chris Wareham wrote: I have a web app structured as follows: myapp/footer.jspf myapp/header.jspf myapp/index.jsp myapp/taglibs.jspf myapp/WEB-INF/... I would like to add a target to

Re: question about mod_jk2 and workers2,properties

2005-12-06 Thread Robert Palmer
I'm running 2.0.51 of Apache. I build mod_jk with --with-apxs. ?? Mladen Turk wrote: Robert Palmer wrote: I'd given that a try and compiled the sources (I coulddn't figure out where to get mod_jk.so from in the binaries). When I restart Apache with the LoadModule statement I get, Cannot

Re: question about mod_jk2 and workers2,properties

2005-12-06 Thread Mladen Turk
Robert Palmer wrote: I'm running 2.0.51 of Apache. I build mod_jk with --with-apxs. ?? If your Apache supports dso modules then simple: ./configure --with-apxs=/path/to/apache/bin/apxs make make install will work for sure. Use most recent stable (jk-1.2.15). If you are not sure if apache

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Chris Wareham
Tim Funk wrote: What tomcat version and commands are you using? IIRC - jspf files by default are not precompiled. I started with Tomcat 5.0.30, but have switched to 5.5.12. The ant targets that I am using is similar to the ones in the Tomcat docs: target name=init-jsp depends=build

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Tim Funk
I suspect that you have a file which includes header.jspf - and that parent file is not including the fn tag lib. (The (potentially) bad error message is another issue) -Tim Chris Wareham wrote: Tim Funk wrote: What tomcat version and commands are you using? IIRC - jspf files by default

RE: Performance problems

2005-12-06 Thread Richard Mixon
Roger, A thread dump/stack trace of all the threads in the Tomcat JVM is one way to see whats happening. It will show what is happening in detail - and may even highlight some problems. It does take a bit of study to understand what you are seeing. Here is an article I use that covers both

Re: Compiling JSPs - how to ignore files with certain extensions.

2005-12-06 Thread Tim Funk
For the OOM error - you might want to add compile=false to your jsp2 task so compilation is not done. (.tag files still end up being compiled but thats a different issue) Then for your javac task add (increase as appropriate) fork='true' memoryInitialSize='192m' memoryMaximumSize='356m'

RE: Performance problems

2005-12-06 Thread Varley, Roger
Hi Richard I've printed that off for future reference. Thank you for your prompt response. Regards Roger Roger, A thread dump/stack trace of all the threads in the Tomcat JVM is one way to see whats happening. It will show what is happening in detail - and may even highlight some

how to better save a trans in DBCP?

2005-12-06 Thread pc leung
I have classes which deal with tables individually. In each class, it has the following lines to get connection pooling and then commit a single table. Context envCtx = (Context) ctx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/myERP); conn = ds.getConnection(); stmt =

RE: how to better save a trans in DBCP?

2005-12-06 Thread Varley, Roger
I have classes which deal with tables individually. In each class, it has the following lines to get connection pooling and then commit a single table. Context envCtx = (Context) ctx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/myERP); conn = ds.getConnection();

Warnings filing my event viewer with shm file creation errors

2005-12-06 Thread Shettleroe, Aaron, AIM
Hello Tomcat Users, I have a Tomcat 5.0.27 installation on a Windows 2003 Server. Tomcat is setup as the servlet container for the IIS 6 instance on my machine. Everything is running well, however, the Event Viewer shows several Warning messages regarding the shm file defined in my

tomcat restart resets webservices on axis

2005-12-06 Thread Mirek Kopriva
Hi, I have problems with webservices deployment on axis when restarting tomcat. The server-config.wsdd simply dissapears from WEB-INF. This started to happen when started using context.xml in META-INF (needed because of using DataSources form JNDI). I believe this should be set by some attributes

Re: Internationalization Problem with Tomcat 5.5.9

2005-12-06 Thread Seak, Teng-Fong
IMO, it's quite possible that your webapp were relying on bugs in previous version. So, you have to make sure you're jsp pages are following standards. The obvious reasons that I could think of are the followings tags not being used correctly: 1. %@ page

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-06 Thread David Smith
I take it you also included j2ee.jar in that search? --David Armand Rock wrote: Hi, I'm getting the same error. I searched my entire computer for any jar/zip files containing javax.servlet.ServletContext and renamed all of them to .original so that they wouldn't be read by the JVM. I did

Re: problem loading class in TomCat

2005-12-06 Thread Mark Thomas
Are all your classes in a package? Mark Camila Kozlowski Della Corte wrote: Greetings, I am developing an application with JSP, and using JSF. Here is a description of the problem I had with TomCat. I created a class A which invokes a class B. This class B invokes a class C (class C is

Re: Critical problem with Tomcat worker threads

2005-12-06 Thread Mirek Kopriva
Hi, We are experiencing similar problem. Just the Thread gets stuck for random period time (between 1 and 15 minutes) after also random period of time. For some reason its always in jdbc driver. Typicaly on the pre-production environment, never on test, developement machines. We are using mod_jk,

RE: AJP13: request headers max packet size

2005-12-06 Thread KARNATI, SRINIVASA R [AG/1000]
Bill: If I make modifications to isapi_redirect.dll and the Java side of the Connector, what is the possibility of getting them included in the future releases of the production code? I asked this because we also should be able to use future releases, or at least until AJP/1.4 alleviates this

To Ing. Pavel PaJaSoft Janoušek tomcat 5.5.9/5.5.12

2005-12-06 Thread Mirek Kopriva
Ahoj, Tomcat user mailing list me zacal odmitat jako spam, a primo vam na mail taky nemuzu napsat. Takze jsem si zalozil novou adresu. Zkuste mi napsat sem. S pozdravem, Mira

Newbie install run question

2005-12-06 Thread Mário Gamito
Hi, I've just installed Tomcat 5.5 for Linux following the instructions on its web page: 1) downloaded and installed apache-ant; 2) downloaded the Tomcat tarball, uncompressed it and on the top source code directory ran ant. I got: BUILD SUCCESSFUL Total time: 1 minute 11 seconds. My question

Re: Newbie install run question

2005-12-06 Thread Mark Thomas
Mário Gamito wrote: Hi, I've just installed Tomcat 5.5 for Linux following the instructions on its web page: 1) downloaded and installed apache-ant; 2) downloaded the Tomcat tarball, uncompressed it and on the top source code directory ran ant. I got: BUILD SUCCESSFUL Total time: 1

What is the admin login username

2005-12-06 Thread Mário Gamito
Hi, What is the login password for the administration module ? I've greped through conf and server, but didn't found :( Any help would be apreciated. Warm regards, Mário Gamito - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: What is the admin login username

2005-12-06 Thread Joe Plautz
You need to add it to the tomcat-users.xml file in conf. You will need to create a new user and role, both being called admin. Just follow what should already exist in the existing file and you will be ok. Joe Mário Gamito wrote: Hi, What is the login password for the administration module

apr port + tomcat

2005-12-06 Thread Thomas Hartwig
Hello, I try to use the APR (1.2.2) in conjunction with tomcat 5.5.12 and tomcat-native-1.1.0. All works fine except one thing: I can only use it with root privileges, because the tomcat connector wants to establish the port 98 for its communication (see stacktrace below). I have not found a

Can anyone give suggestions on Best practices for Farmwardeployer in a tomcat cluster??

2005-12-06 Thread Kim Brianne Go
I'm just new to HA environments, we were able to do Apache / Tomcat Load Balancing through AJP13. Though there were few concerns on fail overs and session information, so we tried clustering tomcat servers. Everything went well and working as of the moment, I know that clustering is just like

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-06 Thread Chris Birch
NoClassDefinition errors are normally thrown if the class or JAR isn't in the classpath, the only other time this happens is when the ClassLoader isn't able to load the class path because an exception is thrown on any static initialisers. (This is conjecture...) It may be the ServletContext

Re: What is the admin login username

2005-12-06 Thread Giorgio Clavelli
You have to edit your CATALINA_HOME/conf/tomcat-users.xml so to have an account with manager and admin rights. At least, I'm using it in localhost for training and it works fine. This is nearly how mine looks like: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role

What's the difference between .zip and .exe from download site?

2005-12-06 Thread David Chen
Hi, there: I tried both .zip and .exe to install tomcat on my Win2000 box. It seems that for .exe: a. it installed Tomcat as win service; b. it also created some registry keys about TomCat version, etc. (Which is critical, I guess, for other applications to check TomCat version, right?).

RE: problem loading class in TomCat

2005-12-06 Thread Carl Olivier
Hi Camilla. Is there any chance you could zip up your webapp's ROOT folder and send it over? Would be happy to take a closer look if there isn't anything sensitive in there! Regards, Carl -Original Message- From: Camila Kozlowski Della Corte [mailto:[EMAIL PROTECTED] Sent: 06

RE: Did any one get TomCat5.0.28 + IIS 5 + JK1.2 work

2005-12-06 Thread David Chen
Thank you Carl, because our potential customer is using IIS as their web server, so, the first thing to persuade them to buy our web applications built from java servlets is to show them that they can still live with IIS. Thanks a lot David -Original Message- From: Carl Olivier

RE: What's the difference between .zip and .exe from download site?

2005-12-06 Thread Caldarale, Charles R
From: David Chen [mailto:[EMAIL PROTECTED] Subject: RE: What's the difference between .zip and .exe from download site? So, it seems we may need to set those registry keys ourselves if using .zip download. The service.bat script in Tomcat's bin directory should do that. - Chuck

RE: What's the difference between .zip and .exe from download sit e?

2005-12-06 Thread David Chen
I see, thanks a lot again. I'll give it a try. Thanks David -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 5:31 PM To: Tomcat Users List Subject: RE: What's the difference between .zip and .exe from download site? From: David

re: making a singleton servlet

2005-12-06 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am going to make my servlet be static, with the hope that it will only have one instance running, regardless of how many clients connect to it. My concern is what happens when two clients try to connect at one time. Will the second client block,

RE: making a singleton servlet

2005-12-06 Thread Caldarale, Charles R
From: James Black [mailto:[EMAIL PROTECTED] Subject: re: making a singleton servlet I am going to make my servlet be static, with the hope that it will only have one instance running, regardless of how many clients connect to it. What do you mean by servlet be static? What syntactical

Re: making a singleton servlet

2005-12-06 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Caldarale, Charles R wrote: From: James Black [mailto:[EMAIL PROTECTED] Subject: re: making a singleton servlet I am going to make my servlet be static, with the hope that it will only have one instance running, regardless of how many clients

Questions for mod_jk quys - are my RedHat compilation instructions correct

2005-12-06 Thread Edmon Begoli
Hi guys, I recently walked few people through the process of compiling the most recent mod_jk on RedHat 4. Process required few steps that required some digging, so I documented them on my blog to be available to others seeking the tips:

RE: making a singleton servlet

2005-12-06 Thread Caldarale, Charles R
From: James Black [mailto:[EMAIL PROTECTED] Subject: Re: making a singleton servlet My plan is to try: public static class SomeServlet extends HttpServlet { ... } You can't use the modifier static there (only with internal classes). That way there should only be one servlet. My

Re: RE: JSP on apache

2005-12-06 Thread Warren Pace
Mukesh, Did you also edit your httpd.conf file and workers.properties? I've attached some snippets from mine as text files. Once you've configured everything, restart the servers first tomcat and then apache. Regards Warren From: mukesh [EMAIL PROTECTED] Date: 2005/12/06 Tue PM

how to better save a trans with DBCP?

2005-12-06 Thread pc leung
I have classes which deal with tables individually. In each class, it has the following lines to get connection pooling and then commit a single table. Context envCtx =3D (Context) ctx.lookup(java:comp/env); DataSource ds =3D (DataSource) envCtx.lookup(jdbc/myERP); conn =3D ds.getConnection();

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-06 Thread John Poley
Thank you for your comments thus far. I have been unable to solve my problem as well. I even went so far as to start with a machine with no development tools on it, downloading just the elements I required, and then trying to redeploy. I am fairly certain that there are no extra servlet jars

Re: AJP13: request headers max packet size

2005-12-06 Thread Bill Barker
KARNATI, SRINIVASA R [AG/1000] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill: If I make modifications to isapi_redirect.dll and the Java side of the Connector, what is the possibility of getting them included in the future releases of the production code? I asked this

Re: how to better save a trans in DBCP?

2005-12-06 Thread pc leung
thanks On 12/6/05, Varley, Roger [EMAIL PROTECTED] wrote: I have classes which deal with tables individually. In each class, it has the following lines to get connection pooling and then commit a single table. Context envCtx = (Context) ctx.lookup(java:comp/env); DataSource ds =

RE: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-06 Thread Caldarale, Charles R
From: John Poley [mailto:[EMAIL PROTECTED] Subject: Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext I even went so far as to start with a machine with no development tools on it, downloading just the elements I required, and then trying to redeploy.

re: making a singleton servlet

2005-12-06 Thread Magyar, Bence
If you deploy your servlet with an application deployment scope, you will have just one instance of the server classes instantiated. Multiple clients can still call into your web service, but you have to make sure that your member data is thread-safe. James Black [EMAIL PROTECTED] wrote:

Re: making a singleton servlet

2005-12-06 Thread Frank W. Zammetti
The problem you are trying to solve is not propely solved by trying to limit the container to a single servlet instance (which you probably cannot control anyway, unless your container allows some sort of proprietary setting). The way you should be thinking to solve this problem is a

changing the webdav root

2005-12-06 Thread Tony
Has the webdav servlet been updated to allow the dav files to be placed outside of the servlet context? For example I would like to specify the DAV files be placed on /space/dav. There was a thread on this about a year ago but i'm not sure if there was ever closure. Here is the note.. Mark