Re: how to get help if no answer from this list?

2006-02-20 Thread Mark Eggers
Dr. Exner, It helps to understand classloading in Tomcat. I just got Axis up and running on the following system. Windows/2000 Professional Java JDK 1.5.0_04 Tomcat 5.59 I will assume that this works the same on my Linux box (Fedora Core 4) since Apache is great in making cross-platform tools.

Re: users Digest 20 Feb 2006 20:29:12 -0000 Issue 6230

2006-02-21 Thread Mark Eggers
You might try using existing environment variables. %HOMEPATH% is the user's home path, but they might not like having temporary files stuffed into their Documents and Settings directory. Maybe %HOMEPATH%\My Documents wouldn't be too bad. Or, you could use the TMP or TEMP environment variable.

Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-02-28 Thread Mark Eggers
enableLookups=true redirectPort=8443 / Why enableLookups=true ??? Also, Cocoon can be very resource-intensive depending on which blocks you've built. JSP under Cocoon 2.1.7 and JDK 1.5 is also problematic, see for example: http://issues.apache.org/jira/browse/COCOON-1457 I have some

Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-02-28 Thread Mark Eggers
Nowak [EMAIL PROTECTED] wrote: Mark Eggers [EMAIL PROTECTED] wrote: enableLookups=true redirectPort=8443 / Why enableLookups=true ??? I use request.getRemoteHost in couple of places. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

RE: Invoker servlet

2006-03-08 Thread Mark Eggers
For a general view: http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html For an example web.xml file: http://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt For the specification: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ Basically you need to define your

Re: Upgrade to Tomcat 5.5 has broken my jndi

2006-03-08 Thread Mark Eggers
Document link: http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html From the document: The resources defined in this element are not visible in the per-web-application contexts unless you explicitly link them with ResourceLink elements. If you use a GlobalNamingResource element,

RE: TomCat + mod_jk performance

2006-03-17 Thread Mark Eggers
There are lots of reasons to run Apache in front of Tomcat, and lots of reasons not to. This just depends on your use cases and web site. At any rate, here's one way to find out in your case if the Apache -- ajp13 -- Tomcat process is your bottleneck. 1. Get jmeter at

Re: help please?

2006-03-27 Thread Mark Eggers
http://www.wickedlysmart.com/HeadFirst/HeadFirstDesignPatterns/HeadFirstPatternsIndex.html Grab the examples. I think the last ones have a full blown MVC example. One uses Spring and one is coded plain. Of course, any prof worth his or her salt is going to both read this mailing list and know

Re: Site Configuration on 5.5.15 Pt 2

2006-05-08 Thread Mark Eggers
There are probably a couple of things going on here. On the Aliasname/Alias, do you really need Tomcat to respond to the host name of www? You probably just want Tomcat to respond to www.theuniquepear.com and theuniquepear.com. I don't think the Aliaswww/Alias is necessary. It looks like

Re: SSL not working on Tomcat

2006-11-07 Thread Mark Eggers
Did you try this with Firefox? IE has some problems with no-cache in the header or as a pragma. Later versions of Tomcat 5.5 set this. There is a mailing list thread concerning this: http://marc.theaimsgroup.com/?t=11180675668r=1w=2 along with some solutions. Hope this helps. /mde/ just

RE: Virtual Hosts [mostly solved]

2006-12-28 Thread Mark Eggers
You may find that the default host loads all of the web applications. In order to solve this, make sure that each of the contexts are not some subdirectory of another context. Host name=localhost appBase=vhosts/local / Host name=foo.mydomain.com appBase=vhosts/foo / Host name=bar.mydomain.com

Re: TCNative installation failed

2010-01-21 Thread Mark Eggers
@tomcat.apache.org Date: Thursday, January 21, 2010, 7:12 PM 2010/1/22 Mark Eggers its_toas...@yahoo.com: (...) In all four cases, the tcnative library failed to load. In the first two cases, the INFO message indicated that the library was not found in /home/mdeggers/Apache/apache-tomcat-5.5.28/bin

Re: Frustrating refusal to serve *some* pages, scripts, images.

2009-06-08 Thread Mark Eggers
--- On Mon, 6/8/09, Zaq Rizer idhindsi...@gmail.com wrote: WARNING: Unable to find configured definition '/WEB-INF/tiles.xml' Jun 8, 2009 3:35:00 PM org.apache.tiles.factory.TilesContainerFactory initializeContainer Just a random thought, which you've alluded to from your iPhone-posted

Re: tomcat install/testing help.

2009-07-18 Thread Mark Eggers
Tom, I tried responding to you off-line, but alaska.gov does not seem to like your mail address. Basically, it sounds like you have a permissions problem with the account under which Tomcat runs. By default, the Tomcat service runs as the Local System account, so that account needs

Re: Trouble setting up virtual host

2009-07-27 Thread Mark Eggers
As usual, late to the thread. I'll use C) then: C) on another workstation :      - close the browser and re-open it.      - in the browser, find the place where you can clear the cache.      - do it (clear the cache)      - request the URL :                  

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Mark Eggers
As an additional comment: Based on earlier comments, it looks like the vendor's application is using the system property tomcat.home to create the file path to open. As you found out this will prevent using CATALINA_BASE or creating virtual hosts under one Tomcat. The vendor might look at

Re: Connector Problems -

2006-08-08 Thread Mark Eggers
I just finally moved over to mod_jk from mod_jk2. Since this is a development environment on Windows/2000 Professional, I didn't have the pressure to move. Anyway, here's my environment: Windows/2000 Professional Apache 2.054 (will upgrade one of these days) Tomcat 5.5.17 JDK 1.5.0_06-b05

Re: tomcat JSP Servlet Apache JK2

2006-08-09 Thread Mark Eggers
There are a lot of issues here, mostly having to do with how you've structured your virtual hosts. However, I think the following should get you up and running quickly. In your VirtualHost directive, add the following line: DirectoryIndex index.html index.html.var login.jsp That should bring

Re: Measuring traffic pr. virtualhost

2006-08-13 Thread Mark Eggers
If you want to do logging on at the Engine, Host, or Context level, then you can use the access logging valve in Tomcat. Configuration information can be found here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html Note that if you serve static material with a front-end Apache server,

Re: workers.properties

2006-08-13 Thread Mark Eggers
This should be like any other web application. I just set it up as a test on my machine and it works fine. Take a look at: http://tomcat.apache.org/connectors-doc/ 1) Set up a standard workers.properties file (example) # only one worker # a better name is called for worker.list=myworker # #

Re: [SPAM ?]Error in dependencyCheck when using Connection pooling

2006-08-14 Thread Mark Eggers
From looking for this error message with Google, it appears that there is a problem with the manifest information in your jar file. Use the following two search items in Google: java.io.IOException invalid header field error in dependencycheck What JDBC driver (DB and version), Tomcat version,

Re: Tomcat Crashed - Please Help.

2006-08-17 Thread Mark Eggers
Are you using Tomcat 5.5.x or Tomcat 5.0.x? Tomcat 5.5.x requires either JSE 1.5 or JDK 1.4.x with the JDK compatibility pack. See the following: http://www.devlib.org/apache/tomcat/tomcat-5/v5.5.17/README.html The compatibility pack can be found here: http://tomcat.apache.org/download-55.cgi

Re: Apache 5.5 HelloWorldExample 404 error

2006-08-24 Thread Mark Eggers
If you're talking about the regular Hello World example in : http://localhost:8080/servlets-examples/servlet/HelloWorldExample I don't know why it wouldn't work. I have a very vanilla Tomcat 5.5.17 install on Windows/2000 Professional with JDK 1.5.0_08 (just rebuilt the system), and everything

Re: Tomcat dies suddenly

2010-02-03 Thread Mark Eggers
Carl, A couple of random thoughts . . . I'm not familiar with the Slackware monitoring tools, but I am with the various tools that come with Fedora / Redhat. One of the things that I've noticed with those GUI tools is that they add cache and buffers to the free memory total. Tools like top

Re: Mod_JK connector configuration Error

2010-02-03 Thread Mark Eggers
apxs gets configuration information for apr and apr-utils, and httpd among other things. It does this by using pkg-config to find the libdir for apr, then prefixing that to httpd/build. For example, pkg-config --variable=libdir apr-1 on my system returns /usr/lib Then apxs looks in

RE: Parameters disappear from PUTs

2010-02-03 Thread Mark Eggers
As a quick check, can you go into /etc/init.d/tomcat6 and at around line 68 you'll see: TOMCAT_SECURITY=yes If you're allowed to, change that line to: TOMCAT_SECURITY=no Then restart tomcat with: ../tomcat6 restart Of course, you have to be root to do this. On first glance, I don't see a

RE: Tomcat dies suddenly

2010-02-04 Thread Mark Eggers
--- On Thu, 2/4/10, Caldarale, Charles R chuck.caldar...@unisys.com wrote: 6. Carl was using 32-bit Linux, which he isn't :( Correct, which made the whole point moot, so I'm not sure why Dan even brought it up. I just mentioned the 32-bit Linux behavior for completeness. I did state that

Re: Tomcat dies suddenly

2010-02-06 Thread Mark Eggers
--- On Fri, 2/5/10, Carl c...@etrak-plus.com wrote: Carl, 1. The application runs fine on an older system. Do we have the glibc and kernel versions for all systems? The old system: P4.  1GB memory, 1.3GB swap.  Uses swap on a regular basis.  kernel is 2.4.25.  Java is 1.5.0_01-b08. 

Re: development platform for jaxws-based webapps

2010-04-26 Thread Mark Eggers
Caveats: I'm normally a systems architect, so I get build architectures or debug performance / crash issues. I've also not built web services by hand. Getting into the middle of an IDE debate starts a religious war similar in intensity to emacs versus vi. All of that said, I just worked

Re: development platform for jaxws-based webapps

2010-04-26 Thread Mark Eggers
versions of Tomcat 6, and fill up your log files with Tomcat 6.0.26. --- On Mon, 4/26/10, Mark Eggers its_toas...@yahoo.com wrote: From: Mark Eggers its_toas...@yahoo.com Subject: Re: development platform for jaxws-based webapps To: Tomcat Users List users@tomcat.apache.org Date: Monday, April

Re: how to use

2010-04-27 Thread Mark Eggers
Google is your friend: http://openejb.apache.org/tomcat.html A bit dated: http://javanotebook.com/2007/09/28/openejb_3_and_tomcat_6.html Lots of tutorials once you get it installed: http://openejb.apache.org/ejb3-tutorial.html --- On Tue, 4/27/10, Navid Esfahani na...@sobhanpaya.com wrote:

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-05 Thread Mark Eggers
I just hacked together a quick example on Windows/XP Professional. I imagine it will work the same way on my Linux machine. Environment: OS: Windows/XP Professional - all the latest patches Java: 1.6.0_20 from Sun Tomcat: 6.0.26 IDE:NetBeans 6.8 I am reworking the Spring Developer's

RE: Tomcat 6 error compiling JSPs with nested @include directives

2010-05-05 Thread Mark Eggers
It also sounds like that there are CVS version control files in the deployment. While I cannot think of any security issues with this on a servlet container, there are known problems with this model when doing straight web development. I can think of two variations to your development process

Re: Help need for implementing Custom Login Module

2010-05-05 Thread Mark Eggers
--- On Wed, 5/5/10, Srinivasa Rao.Kandula srinivas_j...@yahoo.com wrote:     I need help implementing a Custom Login module for a web application which will run on Tomcat 6.X. I need to access ServletRequest/HttpSession in side the login module to access an attribute from the HttpSession. 

RE: Context in conf/Catalina/localhost question

2010-05-10 Thread Mark Eggers
I just ran a series of tests on my Linux platform. I've not rebooted yet to run this on Windows, but I don't imagine there will be any change. Environment (all 32 bit): OS: Fedora 11 with latest patches Java:JRE / JDK 1.6.0_20 from Sun Tomcat: 6.0.26 installed in my local

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-13 Thread Mark Eggers
Here's a link from the Tomcat Wiki. http://wiki.apache.org/tomcat/TomcatHibernate The bottom portion of the document explains how to use Hibernate to manage database pooling instead of Tomcat. I hope it gives you some leads. . . . . just my two cents /mde --- On Thu, 5/13/10, Jeff Hubbs

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-14 Thread Mark Eggers
I'm not familiar with the earlier versions of Hibernate, so I can't reliably comment. However, the principles should be the same even if some of the names have changed. If you are relying on Hibernate for database connections and database pooling, then you'll want to put all of that

Re: stuck confused an need help please

2010-05-25 Thread Mark Eggers
OK - I have a huge message that I'm going to cut and paste into this one, rather than finding the original and editing it online. I'm going to edit in place and try to point out some issues. I'll ask some questions along the way. I am trying to tweak my web application at thejarbar.org to be

Re: stuck confused an need help please

2010-05-25 Thread Mark Eggers
They have to be on the classpath. The base configuration file ends up in WEB-INF/classes. I've always put my hbm.xml files alongside the classes they map. Make sure that there is only one copy of your JDBC driver in your classpath as well, and that it's in the right location. /mde/ --- On

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Mark Eggers
--- On Fri, 5/28/10, Christopher Schultz ch...@christopherschultz.net wrote: Problem #2: I noticed another message in intellij complaianing that a mysql connecton was not closed but was closed by the container to prevent a memory leak. I have look everywhere in code and have closed the

Re: sneaky JDBC connection (was: THANK YOU ALL for help)

2010-05-28 Thread Mark Eggers
I apologize to the list, the last message got truncated and sent. I hit return twice while editing in Yahoo (normally edit off-line). OK - for the database leak. Use try / catch / finally blocks around all connection code (Hibernate or otherwise). I think someone posted boilerplate code to the

Re: problems at thejarbar.org

2010-05-31 Thread Mark Eggers
I think you are running into a MySQL database connection timeout. You can use a MySQL admin interface (command line, PHPAdmin, MySQL Workbench, etc.) to verify the idle connection timeout limit. There have been comments on the web concerning this. One such discussion and a solution are here:

Re: problems at thejarbar.org

2010-06-01 Thread Mark Eggers
Chris, based on what you're saying and the server.xml posted earlier in this thread, the following should be done? 1. Remove the JDBCRelm from the Engine node 2. Create a GlobalNamingResources Resource entry with the following: Resource name=jdbc/auth description=The Jar Bar user

[OT] Re: problems at thejarbar.org

2010-06-01 Thread Mark Eggers
Chris, I think it all depends what you need your Realm to manage. In this instance (single application on Tomcat), then it probably doesn't matter if the Realm sits at the application, Host, or Engine level. Like you've pointed out before it's nice to have a self-contained application with

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Mark Eggers
Please read the following for a detailed description on how to configure Hibernate to use JNDI resources supplied by Tomcat. http://wiki.apache.org/tomcat/TomcatHibernate Then you will need a ResourceLink element in META-INF/context.xml to make the resource in GlobalNamingResources available

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Mark Eggers
Subject: Re: hibernate not finding global resource datasource defined by tomcat To: Tomcat Users List users@tomcat.apache.org Date: Monday, June 14, 2010, 2:59 PM On 14/06/2010 22:45, Mark Eggers wrote: I'm trying to finish up a document on DataSourceRealms. Hopefully that will get posted

Re: tomcat hibernate wiki

2010-06-15 Thread Mark Eggers
I've added a sentence clarifying that, saying that you still need the dialect property. --- On Tue, 6/15/10, yucca...@live.co.za yucca...@live.co.za wrote: Please add to the wiki that hibernate dialect must still be set. Wiki says, must have NO database configuration properties but just

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-15 Thread Mark Eggers
Subject: Re: hibernate not finding global resource datasource defined by tomcat To: Tomcat Users List users@tomcat.apache.org Date: Monday, June 14, 2010, 11:31 PM On 15/06/2010 02:21, Mark Eggers wrote: Sure, I can make an attempt at it. I'd like to finish the wiki entry first. What I'm writing

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2010-06-15 Thread Mark Eggers
Are you developing on 6.0.x but deploying on 5.?.x (5.0 or 5.5)? What version is running in production? --- On Tue, 6/15/10, yucca...@live.co.za yucca...@live.co.za wrote: From: yucca...@live.co.za yucca...@live.co.za Subject: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC

Re: basic 2 virtual hosts configuration

2010-06-16 Thread Mark Eggers
MB, You can follow the instructions given for Tomcat 6 on this wiki page: http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts The only difference is that the Manager application for Tomcat 5.5.29 is contained in the ROOT application. This means that you will skip the following step.

Re: basic 2 virtual hosts configuration

2010-06-16 Thread Mark Eggers
: From: Pid p...@pidster.com Subject: Re: basic 2 virtual hosts configuration To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, June 16, 2010, 2:58 AM On 16/06/2010 08:12, Mark Eggers wrote: MB, You can follow the instructions given for Tomcat 6 on this wiki page

Re: tomcat.exe 6.0.18 to 6.0.26 stdout/stderr redirection

2010-06-20 Thread Mark Eggers
If you're running as a service, why don't you make use of --StdOutput and --StdError as documented here: http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html Also, if you're running as a service, the Tomcat Monitor allows you to change this at any point. There's a tab called

Re: Convert a certificate from IIS (.PFX) into a (.keystore) for Apache Tomcat v 6.x

2010-06-23 Thread Mark Eggers
Google is your friend? http://www.cb1inc.com/2007/04/30/converting-pfx-certificates-to-java-keystores/ Please note that I have not tried this. Your mileage may vary. /mde/ --- On Wed, 6/23/10, ian loyola ian_loy...@yahoo.com wrote: From: ian loyola ian_loy...@yahoo.com Subject: Convert a

Re: No members active in cluster group

2010-07-15 Thread Mark Eggers
A quick question: Does the Windows Server stop multicast packets? I was exploring clustering today on Fedora 13, and I had to modify my firewall rules to allow multicast. Here's a nice tool from an earlier thread about clustering. If you run this on your local machine you should see messages.

Re: Is FarmWarDeployer is working?

2010-08-06 Thread Mark Eggers
Shammi, I have something working for 3 Tomcat 6.0.29 nodes on Fedora 13 using Sun JRE/JDK 1.6.0_21. I've not tried undeploying a web application yet. Here's what I've found so far on Tomcat 6.0.29. 1. You have to place the Cluster node under the Host element. Tomcat 6.0.29 complains that

Clustering within a single system

2010-08-07 Thread Mark Eggers
I apologize for the wall of text. I'm working through the clustering and farm deployment documentation for Tomcat 6 / Tomcat 7. To that end I've set up a 3 node cluster load balanced by an Apache web server on a single system. The environment and configuration particulars are at the end of the

Re: Cluster Logging

2010-08-09 Thread Mark Eggers
How about something like this: handlers = 1catalina.org.apache.juli.FileHandler, \ 2localhost.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler, \ 4host-manager.org.apache.juli.FileHandler, \ java.util.logging.ConsoleHandler, \ 5cluster.org.apache.juli.FileHandler

Re: Cluster Logging

2010-08-09 Thread Mark Eggers
Let me try that again since my copy/paste failed. # # add an extra handler to direct to a different file # handlers = 1catalina.org.apache.juli.FileHandler, \ 2localhost.org.apache.juli.FileHandler, \ 3manager.org.apache.juli.FileHandler, \ 4host-manager.org.apache.juli.FileHandler, \

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Mark Eggers
Astghik, As has already been pointed out: 1. Don't put Context elements in server.xml - use either: a. META-INF/context.xml in your web application b. $CATALINA_HOME/conf/Catalina/[hostname]/[application].xml 2. Don't use docBase in your Context element. Tomcat will figure that out 3.

Re: JNDI: LDAPv3 with StartTLS

2010-08-15 Thread Mark Eggers
A couple of things come to mind: Could this be a remote firewall issue? If you have an LDAP client that can go against your server, that would answer that question. I did a quick search, and there are a lot of messages concerning Debian and java.net.SocketException: Network is unreachable

Re: JNDI: LDAPv3 with StartTLS

2010-08-15 Thread Mark Eggers
Reading your original request, you're using an external certificate to go against your LDAP server, right? If so, you might try using Felix's code, and then adding authentication=EXTERNAL to the Realm configuration. Your JNDIRealm configuration would then end up looking like: Realm

Re: How can i tell how much of allocated heap is being used?

2010-08-18 Thread Mark Eggers
Would visualvm serve your purpose? https://visualvm.dev.java.net/ . . . . just my two cents. /mde/ - Original Message From: laredotornado laredotorn...@gmail.com To: users@tomcat.apache.org Sent: Wed, August 18, 2010 11:41:37 AM Subject: How can i tell how much of allocated heap is

Re: Installation problem [newbie]

2010-08-18 Thread Mark Eggers
A couple of things: The list in general strips attachments, so your log did not make it through. The file httpd-2.2.16-win32-x86-openssl-0.9.8o.msi is for installing the Apache web server. The Apache web server is useful if you are planning to write PHP, Perl, Python, or Lisp/Scheme web sites.

Re: war not redeploying

2010-08-18 Thread Mark Eggers
Are you starting and stopping Tomcat under Cygwin? I've seen some interesting file locking problems (as well as the terminate batch job? question) when running Windows applications under Cygwin. How are you deploying your web application? Are you copying the new war file into

Re: Installation problem [newbie]

2010-08-18 Thread Mark Eggers
Please only reply to the list. I read the list regularly (and respond sporadically). I also get about 200 mail messages per day, and will probably miss mail messages from addresses I don't recognize. I will certainly not respond to addresses I don't recognize very quickly. Thanks. I'll make

Re: Installation problem [newbie]

2010-08-18 Thread Mark Eggers
If you want to run PHP, then either use IIS (which is already installed and running), or shut down IIS and run Apache HTTPD (which is not Tomcat). Tomcat can (sort of) run PHP, but it's problematic. If you are writing and running PHP, use Apache HTTPD. Tomcat is not a prerequisite for running

Re: [OT] Sessions mix-up on Tomcat 6.0.26 on Linux

2010-08-19 Thread Mark Eggers
Client side validation is for convenience and user feedback. Server side validation is still required. Nothing requires a user to use a browser, or to not use extension like Fiddle or Tamper to play with the information once it's passed your validation scripts. . . . just my two cents. /mde/

Re: Best practices for deployment on cluster environment

2010-08-26 Thread Mark Eggers
I haven't tried this in production (yet) so your mileage may vary. In the cluster setup, there's a FarmDeployer element that can be used to deploy across the cluster. The host that does the deploying: Deployer className=org.apache.catalina.ha.deploy.FarmWarDeployer

Re: 7.02 on Windows XP: An instance of Tomcat7 is already running

2010-08-31 Thread Mark Eggers
Sometimes when I boot into Windows/XP I don't get some icons in the system tray. I've not seen this happen with the Tomcat monitor, but I have seen this happen with the Apache httpd monitor. What I do is bring up the process list, search for the offending process (would be tomcat7w.exe for

Re: Apache AJP to 4 TCs

2010-09-09 Thread Mark Eggers
Weird. I just updated my environment (on Fedora 13) to support 4 Tomcats and it worked as expected. I verified this by running my test application, watching traffic via jk-manager, and then shutting down (disabling) one mod_jk connection at a time. Clustering worked, farm deployment worked,

Re: Apache AJP to 4 TCs

2010-09-13 Thread Mark Eggers
Thanks, but credit where credit is due. The basis for my configuration was taken from the examples in the source code. There are a lot of notes in the original source code configurations. Even if you don't compile it yourself (I do, since I'm mostly on Linux), the files are worth the read.

Re: To JAAS or not to JAAS

2010-09-13 Thread Mark Eggers
As an alternative, maybe you could write an ant script that would add the libraries, read values from a properties file to write the jaas.config file, and populate the database? Copying files with ant is easy, and http://db.apache.org/ddlutils/ makes it pretty easy to dump and recreate

Re: How to solve To prevent a memory leak

2010-09-16 Thread Mark Eggers
See the following Wiki article on how to use Hibernate and Tomcat's pooling. http://wiki.apache.org/tomcat/TomcatHibernate As another person said, make sure you have a recently updated MySQL driver. I believe anything = 5.1.11 solves a threading issue that was reported on their (MySQL's) bug

Re: Compiling Tomcat 6.0.x trunk

2010-09-20 Thread Mark Eggers
I just compiled Tomcat 7 trunk on linux (Fedora 13, 1.6.0_21, 32-bit) with ant 1.7.1 with no problems. . . . just my two cents. /mde/ - Original Message From: Caldarale, Charles R chuck.caldar...@unisys.com I seem to recall that Tomcat 7 now requires ant 1.8; I wonder if the 6.0

Re: Issues with Memory Leaks on Tomcat 6.0.28

2010-09-23 Thread Mark Eggers
I'll do some of this inline: WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property. Two things here: 1. Place your context in a META-INF/context.xml file in your web application, not in server.xml 2. Remove the

Re: Tomcat Consultant

2010-09-25 Thread Mark Eggers
Yep, PL/I was a great language. My first stunt was opening up partitioned dataset and treating it as sequential to play with the header. Yes, I had backups. I worked for a consulting organization for a while. I was at that time a network person, but the first thing they did was put me in as

Re: deploy a war file

2010-10-02 Thread Mark Eggers
You can, although you'll have to reconfigure Tomcat in order to do this. However, it sounds like you want to place your war file where Apache httpd can see it (after enabling the mod_userdir and configuring it). If you do this and serve that directory with Apache httpd, some very unpleasant

Re: Configuring which Servlet is invoked

2010-10-12 Thread Mark Eggers
Chris, I'm going to leap into the middle of this discussion. Please feel free to discount what I'm going to say since I've just briefly glanced at the Roller 5.0 RC2 documentation. From what I understand, the intent is to have one Roller application running as the default web application

Re: Configuring which Servlet is invoked

2010-10-12 Thread Mark Eggers
...@unisys.com To: Tomcat Users List users@tomcat.apache.org Sent: Tue, October 12, 2010 7:43:35 AM Subject: RE: Configuring which Servlet is invoked From: Mark Eggers [mailto:its_toas...@yahoo.com] Subject: Re: Configuring which Servlet is invoked If that's the case, then what I think you need

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Eggers
I saw a mention of this on the Quartz forums. People there seem to think it's a race condition between Quartz's scheduler shutdown and Tomcat's thread memory leak reporting. I wrote a quick Quartz scheduler (1.8.3) application. It does the following: 1. Uses the supplied listener to put a

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Eggers
6.9.1 On 18/10/2010 23:02, Mark Thomas wrote: On 18/10/2010 16:56, Mark Thomas wrote: On 18/10/2010 12:05, Mark Eggers wrote: I saw a mention of this on the Quartz forums. People there seem to think it's a race condition between Quartz's scheduler shutdown and Tomcat's thread memory leak

Re: Tomcat memory leak error launching web app in NetBeans 6.9.1

2010-10-18 Thread Mark Eggers
Once again, I apologize for the wall of text. However, most of it is pretty quick and dirty code, so it should be easy to skim. I'm guessing the end result is harmless? It does seem like a race condition. Everything seems to work fine until shutdown. When DEBUG is set in logging, you get the

Re: Is there a GOOD AJP-based cluster reference?

2010-11-04 Thread Mark Eggers
At the risk of violating your request (not to point you to the documentation), I'm going to point you at the documentation. In particular: manual/mod/mod_proxy.html#proxypassreverse (from the Apache httpd docs) This will rewrite response URLs. However, there is a caveat. It will not rewrite

Re: Secondary instance of Tomcat on single server does not process requests

2010-11-04 Thread Mark Eggers
From the RUNNING.txt you will need tomcat-juli.jar in $CATALINA_BASE/bin. That being said, I start up and shut down 4 Tomcat instances when I'm working on cluster issues. Here's a typical directory structure I use for each Tomcat that's a part of the cluster: deimos-host/ ├── bin │ ├──

Re: Is there a GOOD AJP-based cluster reference?

2010-11-04 Thread Mark Eggers
under the htdocs dir. I just put them there as I got them. (There is no static directory on the Tomcat side, it's virtual. The dev team is doing weird stuff with this new product.) Let me know if you see any problems with the above config. Jeff -Original Message- From: Mark Eggers

Re: how to setup HOME_PATH for Java and CATALINA_HOME

2010-11-18 Thread Mark Eggers
From this and other messages, it looks like you're running everything installed from the Fedora distribution. While I run Fedora (just upgraded to Fedora 14), I don't use any of the distribution-supplied packages for Java, Tomcat, or the IDE (my preference being NetBeans). To get the Oracle

Re: Windows Service Uninstall (was: Re: Problems installing Tomcat on Windows 2008)

2010-11-30 Thread Mark Eggers
Possibly Sysinternals? http://technet.microsoft.com/en-us/sysinternals/default.aspx See the Handle utility. Caveat - I'm not a Windows expert (or person). /mde/ - Original Message From: Thomas apache.org-li...@darkwhole.de To: users@tomcat.apache.org Sent: Tue, November 30, 2010

Re: automatic deployment without server.xml - bad request

2010-12-01 Thread Mark Eggers
Short answer: Please read (carefully), the following documentation: http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html Longer answer: 1. remove the docBase attribute from your Context Your docBase would only work if you have a directory $CATALINA_BASE/com.mycompany.myapp. 2.

Re: Modifying logging levels logged in catalina.out at runtime

2010-12-01 Thread Mark Eggers
Hopefully you're not creating custom logging levels. Creating custom logging levels is the classic way to create classloader leaks. See the following as an example: http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java You can create a logging.properties file and place it in

Re: Questions about installing APR

2010-12-02 Thread Mark Eggers
In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what

Re: Place .ini conf file inside the war package.

2010-12-04 Thread Mark Eggers
Read about using properties files. They're typically called name.properties. Snippet of code that can be placed in a ServletContextListener. String resource = some.properties; InputStream in = this.getClass().getClassLoader().getResourceAsStream(resource); try { props.load(in);

Re: Questions about installing APR

2010-12-07 Thread Mark Eggers
...@stratus.com] Thanks for your help. That worked. -Original Message- From: Mark Eggers [mailto:its_toas...@yahoo.com] In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel

Re: class not found in tomcat's JARs (in $CATALINA_HOME/lib)

2010-12-07 Thread Mark Eggers
Out of curiosity, couldn't you use the information in RUNNING.txt under Advanced Configuration - Multiple Tomcat Instances to meet your requirements? . . . just a thought. /mde/ - Original Message From: frank fr...@cloud.com Hi Experts: I have read class not found in FAQ and

Re: HTTP status 404

2010-12-08 Thread Mark Eggers
Lava, Please read the following: http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html Pay particular attention to: http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html#Standard_Directory_Layout (please note the above link is line-wrapped) Here's an example. Each line

Re: deploy log4j

2010-12-08 Thread Mark Eggers
You don't say the following: Tomcat version JRE/JDK version Platform (OS and version) That being said, I use log4j (with or without Apache commons logging) for nearly every web application I run on Tomcat. Short answer: You don't manually read in your properties file with log4j. Read a

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
In the absence of a web.xml file with the following: welcome-file-list welcome-filefilename.htm/welcome-file /welcome-file-list You will have to navigate to: localhost:8080/filename/filename.htm In another message I posted a minimal web.xml file. Change index.html to

Re: Not supported by Basic Datasource

2010-12-09 Thread Mark Eggers
From a quick glance it looks like you're mixing Hibernate-controlled database pooling with Tomcat-managed pooling. Read this and see if that helps. http://wiki.apache.org/tomcat/TomcatHibernate . . . . just my two cents. /mde/ - Original Message From: SOPANMISHRA

Re: deploy log4j

2010-12-09 Thread Mark Eggers
cpannon, I just wrote a very simple web application (2 JSP files, one servlet) and added log4j. I ran this on Linux and Windows/XP with both console and file logging. I don't have access to a Windows server platform (all UNIX or Linux) so I cannot test there. Note, I'm not running under a

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
so to be honest I'm kinda confuse is it working now ?if I changed the web.xml shouldn't be working on localhost:8080/filename/ ? Thanks Lava On Thu, Dec 9, 2010 at 1:15 PM, Mark Eggers its_toas...@yahoo.com wrote: In the absence of a web.xml file with the following: welcome-file-list

Re: deploy log4j

2010-12-09 Thread Mark Eggers
log4j -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/9/2010 3:44 PM, Mark Eggers wrote: I didn't get any errors. Nor do we: we use log4j for application logging, have log4j.jar in WEB-INF/lib, have our log4j.properties in WEB-INF/classes/log4j.properties, and use the following code

  1   2   3   4   5   6   7   8   >