Re: Tomcat binaries for Solaris 9 SPARC?

2004-12-13 Thread ohaya


"Caldarale, Charles R" wrote:
> 
> > From: ohaya [mailto:[EMAIL PROTECTED]
> > Subject: Tomcat binaries for Solaris 9 SPARC?
> >
> > I was wondering where I might get binaries for Tomcat for Solaris 9
> > SPARC?  I went to the www.apache.org website, and there are ".tar.gz"
> > versions, but I couldn't see any specific for Solaris/SPARC systems.
> 
> Tomcat is written in pure Java, so the binaries are identical for all 
> platforms.  The only difference in the downloads is the compression mechanism 
> (plus a Windows-only installer version).  You would normally get the .tar.gz 
> version for any UNIX/Linux system, although the .zip one has the same 
> content.  There used to be a warning to always use the GNU versions of the 
> compression tools for UNIX/Linux, but I can't find that statement anymore 
> (but I didn't look real hard).
> 

Hi Chuck,

The warning about tar is in one of the README files (the one describing
different versions).

BTW, I notice that in my Solaris system, it looks like some Tomcat
packages are already installed, probably because I did a "full" Solaris
installation.  It's kind of strange though.  I can't find any
"server.xml" files anywhere.  It's like a partial installation?

Do you or anyone know how I can fully install whatever version comes
with Solaris 9?  That'd be the easiest, because I have problems bringing
in CDs at where I work, so if we can use whatever Sun happened to put
into the Solaris distro, that'd be great.  We only need Tomcat 4.1
standalone, minimum.  I need this (Tomcat) because an app that I'm
trying to install calls for Tomcat 4.1 because it's distributed as a
WAR.  

No need for Apache, etc.

Thanks,
Jim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat binaries for Solaris 9 SPARC?

2004-12-13 Thread Caldarale, Charles R
> From: ohaya [mailto:[EMAIL PROTECTED]
> Subject: Tomcat binaries for Solaris 9 SPARC?
> 
> I was wondering where I might get binaries for Tomcat for Solaris 9
> SPARC?  I went to the www.apache.org website, and there are ".tar.gz"
> versions, but I couldn't see any specific for Solaris/SPARC systems.

Tomcat is written in pure Java, so the binaries are identical for all 
platforms.  The only difference in the downloads is the compression mechanism 
(plus a Windows-only installer version).  You would normally get the .tar.gz 
version for any UNIX/Linux system, although the .zip one has the same content.  
There used to be a warning to always use the GNU versions of the compression 
tools for UNIX/Linux, but I can't find that statement anymore (but I didn't 
look real hard).

 - 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: JK 1.2.7 Problem?

2004-12-13 Thread Bill Barker
You could also set the logging level to DEBUG for the category 
'org.apache.jk'.  That should give you a hex dump of the problem message 
with the exception.

The exception is when Tomcat is parsing the Content-Length header.  However, 
since it is working on the retry (inferred because it isn't reported to the 
user), I'm guessing that Mladen is probably correct about the cause.

"Allistair Crossley" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Will do. I am off now so it will be tomorrow before I can post anything.

Cheers, Allistair,

> -Original Message-
> From: Mladen Turk [mailto:[EMAIL PROTECTED]
> Sent: 13 December 2004 18:02
> To: Tomcat Users List
> Subject: Re: JK 1.2.7 Problem?
>
>
> Allistair Crossley wrote:
> > Hi,
> >
> > I'm afraid I cannot tell you too much about this. I have no
> idea why or how I am generating these errors. I'm just
> stepping around my test web site and and every now and again
> this error is dumped into stdout. I think it may be the JK
> 1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat
> 5.5.5. No error is propogated to the user, it seems to be silent.
> >
>
> Hi can you test the newst beta-3.
> It might be that you have a socket_timeout property set in your config
> that was using milliseconds instead seconds.
>
> The binaries are at:
> http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binari
es/win32/

Also could you please turn log level to trace and post a log.

Regards,
Mladen.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat binaries for Solaris 9 SPARC?

2004-12-13 Thread ohaya
Hi,

I was wondering where I might get binaries for Tomcat for Solaris 9
SPARC?  I went to the www.apache.org website, and there are ".tar.gz"
versions, but I couldn't see any specific for Solaris/SPARC systems.

Thanks in advance,
Jim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


visualgc and tomcat

2004-12-13 Thread Asim Alp
I hava a problem finding out the lvmid of the running Tomcat instance.
 I have installed jvmstat 3.0 from Sun.  It works perfectly fine for
all running Java applications but Tomcat.  When I type jps and hit
enter, I don't see Tomcat's lvmid.  I tried using the PID in task
manager, but that didn't work either.  Any suggestions?

BTW, I'm running Tomcat 5.5.4 on Windows Server 2003 with Sun's
jdk1.5.0-b64, and I'm NOT running it as a service.  I use the
startup.bat file.

Thanks,

Asim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread footh
Thanks for the response Wolfgang...this helps a lot.

I did finally get this to work by running the
installer a second time and installing in a different
directory.  I mentioned this in a post that I wrote
before I read your post.  Basically the problem I was
having was using an improper name for the service. 
However, this new service does point to the libraries
in the new install directory as opposed to one single
install.

I might try doing what you described and get
everything to run with one main "home" but for now,
I'm happy that I finally have it working.





--- Wolfgang Hackl <[EMAIL PROTECTED]> wrote:

> footh wrote:
> 
> [running more than one Tomcat on a single machine]
> 
> > First off, I want to run Tomcat as a service and
> that
> > seems to talk about running multiple instances
> with
> > the startup script.
> 
> It is likely that you want to use one version of
> Tomcat to run your web 
> sites. So, I assume you have downloaded a
> distribution and put it 
> somewhere on your server. This location is called
> CATALINA_HOME. For a 
> single instance CATALINA_HOME = CATALINA_BASE, i.e.
> no need to care about.
> 
> > Second, item number 4 more or less says for
> multiple
> > instances "you can use CATALINA_BASE" as an
> argument
> > but doesn't really explain CATALINA_BASE.  Is it
> the
> > install directory of Tomcat?  Or is it a directory
> > where I have another set up "webapps" and context
> > configuration files.  I can't quite visualize what
> it
> > means to use CATALINA_BASE and how to set up the
> > directories.
> 
> If you want to have more than one operating system
> service, you must 
> copy certain parts (mostly configuration files) from
> your CATALINA_HOME 
> directory to a new location. This new directory is
> called CATALINA_BASE. 
>A CATALINA_BASE is a directory containing
> configuration files etc. 
> that are individual to an OS service. The executable
> files do not need 
> to be copied since they will be re-used.
> 
> You need to call service.bat with appropriate
> parameters (CATALINA_BASE 
> is the most important one) in order to install an OS
> service. The 
> init-scripts (Unix) or registry settings (for
> Windows look around at 
>
HKEY_LOCAL_MACHINE\System\CurrentControlSet\SERVICES\Apache
> Tomcat) for 
> the service always call the same tomcat executables.
> The service 
> parameters determine wich config files to use.
> 
> So for each Tomcat instance, you need to change the
> server.xml in the 
> specific CATALINA_BASE to have your services
> listening to different IP 
> addresses and/or TCP ports (same changes for
> shutdown port and AJP 
> connectors necessary).
> 
> I hope this helps. If it is not sufficient, I could
> provide you with a 
> screenshot of my directory layout.
> 
> Wolfgang
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JNDI object not shared among TC instances

2004-12-13 Thread Benson Margulies
Why would you expect this to be possible?

JNDI defines an API for a directory. Inside one JVM, it's simple
technology to use that API to look up Java objects. Once you involve
multiple JVMs, you need some sort of object sharing and/or persistence
system to allow code in multiple JVM's to look up 'the same' objects.
Some of us used to work on Object Oriented Databases for this purpose
--- EJBs are another view.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-13 Thread Robert Taylor
Sorry. I left off some info:

Tomcat 5.0.25
Win2k
JDK1.4.2

/robert

> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 13, 2004 8:59 PM
> To: [EMAIL PROTECTED]
> Subject: [newbie] Container Managed Security - preventing direct access
> to .jsp
> 
> 
> Greetings, 
> 
> I'm new to Tomcat and this mailing list, and have a question
> regarding configuring Tomcat to simply disallow access to .jsp pages
> which I have been protected via the  in my web app
> web.xml file.
> 
> >From what I understand, the following should do the trick and cause
> a 403 error to be sent to the browser by the container. I would like
> to trap that error code and display a user friendly page (I chose any page
> so I would know it's working).
> 
> I've simply modified the Tomcat jsp-examples web app. Here's a snippet
> of the necessary artifacts in the web.xml file.
> 
> 
> 
> 
> 403
> /dates/date.jsp
> 
> 
> 
>   Example Security Constraint
>   
>  Protected Area
>  /security/protected/*
>   
> 
> 
> 
> I believe the constraint is working, but I don't think the 
>  is "catching" the 403 status code. This is probably
> because a 403 status code is not returned, but rather a 200 (I verified
> this by looking at the response headers).
> 
> Anyhow, the content of the returned page is below within the :
> 
> 
> 
> You are logged in as remote user null in session 
> D97EE937BEC953A7E82E42B3956AED86
> 
> No user principal could be identified.
> 
> To check whether your username has been granted a particular role, enter it 
> here:
> 
> 
> If you have configured this app for form-based authentication, you can log 
> off by 
> clicking here. This should cause you to be returned to the logon page after 
> the 
> redirect that is performed.
> 
> 
> I'm sure this has happened to someone else, I just cannot find where.
> I googled and didn't come up with much. I searched the archives using
> "You are logged in as remote user null in session" and no matches were
> found.
> 
> Any help would be greatly appreciated.
> 
> /robert
> 
> 
>  
> 
> -
> 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]


[newbie] Container Managed Security - preventing direct access to .jsp

2004-12-13 Thread Robert Taylor
Greetings, 

I'm new to Tomcat and this mailing list, and have a question
regarding configuring Tomcat to simply disallow access to .jsp pages
which I have been protected via the  in my web app
web.xml file.

>From what I understand, the following should do the trick and cause
a 403 error to be sent to the browser by the container. I would like
to trap that error code and display a user friendly page (I chose any page
so I would know it's working).

I've simply modified the Tomcat jsp-examples web app. Here's a snippet
of the necessary artifacts in the web.xml file.




403
/dates/date.jsp



  Example Security Constraint
  
 Protected Area
 /security/protected/*




I believe the constraint is working, but I don't think the 
 is "catching" the 403 status code. This is probably
because a 403 status code is not returned, but rather a 200 (I verified
this by looking at the response headers).

Anyhow, the content of the returned page is below within the :



You are logged in as remote user null in session 
D97EE937BEC953A7E82E42B3956AED86

No user principal could be identified.

To check whether your username has been granted a particular role, enter it 
here:


If you have configured this app for form-based authentication, you can log off 
by 
clicking here. This should cause you to be returned to the logon page after the 
redirect that is performed.


I'm sure this has happened to someone else, I just cannot find where.
I googled and didn't come up with much. I searched the archives using
"You are logged in as remote user null in session" and no matches were
found.

Any help would be greatly appreciated.

/robert


 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Create a new web application

2004-12-13 Thread Ben Souther
On Tue, 2004-12-14 at 08:16, Manisha Sathe wrote:
> Hi,
> 
> Just few days back i downloaded TomCat and learning it. I tried small 
> servlet/jsp files and tested it but putting them under /jsp-example and 
> /servlet-examples i.e.  existing project directory.
> 
> but for my project i want to create new application. I believe I do not have 
> Ant (if it is not part of Tomcat) and cvs. Can anybody help me with some 
> basic steps ? In installation guide it is given using cvs - when i tried it 
> gave me error.   
> 
> Thanks and regards
> Manisha

Welcome,

You don't need Ant to build JSPs or Servlets but it is a handy tool for
building, deploying, and undeploying.

I recommend that you pickup a Servlet/JSP book or find a good tutorial
on the web.  The "First App" tutorial on the Tomcat site is excellent.
It mentions CVS and gives some good pointers for using it in your
projects but you don't need to use CVS to get through the tutorial.

I've got some simple examples on http://simple.souther.us that can be
run by simply downloading the war files to your webapps directory. 
It's an easy way to see some working examples but it's not a tutorial.

Do a Google search for Servlet Tutorial and you'll see scores of them.

The time it takes to do some reading or to follow a tutorial or two will
be well spent.

Good-Luck
-Ben Souther




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Undeploying without using manager?

2004-12-13 Thread Shapira, Yoav

Hi,

>I would like to stop and undeploy a webapp without restarting
>tomcat, and without using the manager application. Preferablely
>using a command line tool. How can I do that?

You can use the Manager through Ant, as illustrated in the Manager
how-to doc.  But if really don't want to use the Manager at all, and
don't want to restart Tomcat, go write your own undeployment mechanism.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI object not shared among TC instances

2004-12-13 Thread John Smith
 Thanks Joav and for the other people stumbling on the same rock

 and by the way why don't they use a search box at
http://jakarta.apache.org/tomcat/faq/  ?

 I had to click in, search and and click out of it again for every faq
topic!!!???

 OK, I found the answer here:
http://jakarta.apache.org/tomcat/faq/misc.html#externalJndi

 Can I access Tomcat's JNDI provider from outside tomcat?
Not at this time.

 The question/answer should be worded/extended like . . .

 Even different Tomcat instances use different JNDI contexts, . . .

and here: http://jakarta.apache.org/tomcat/faq/misc.html#ejb

 Is tomcat an EJB server? Can I use EJBs with tomcat?

 Tomcat is not an EJB server. Tomcat is not a full J2EE server. Tomcat is a
Servlet container. Tomcat does support those parts of the J2EE specification
that are required for Servlets, such as a subset of JNDI functionality.
Furthermore, you can connect to remote J2EE servers, or run tomcat embedded
inside a full J2EE server.


Now I see, I was getting a little too fancy, I will have to use EJBs


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WAR files and Eclipse

2004-12-13 Thread Jonathan Wilson
I tried eclipse, but man was it hard to get configured properly. I 
wanted to use Eclipse/MyEclipse since I do Perl/C/C++ work as well and 
thought one tool that binds them all, yada yada yada.

I then tried NetBeans and it worked for my environment 'out-of-the-box'. 
It took zero configuration for me. I just pointed it at my existing 
source tree and it built its environment and ant scripts accordingly. I 
really like all of it's editors/interfaces better as well. I would 
rather use 2 tools (NetBeans for java stuff, and eclipse(or my older 
editor) for everything else) than jump through Eclipses' hoops for 
java/J2EE stuff.

Your mileage may vary.
--JW
Phillip Qin wrote:
It is very easy. Use ant's war task.
-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: WAR files and Eclipse

Hello All,
I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.
Daniel
!DSPAM:41bdff16171791264215269!
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.5.4 Ant Task

2004-12-13 Thread Siarhei Dudzin
Yes, antiJARLocking and antiResourceLocking are not enabled by default.
Unfortunately, non of them (together and separately) did not help to
solve my problems...
 
> > I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
> > work great except the Ant Tasks.  Deploy works just fine but when I do
> > the undeploy task the folder that contains my webapp does not get
> > removed.  So when I go to deploy again, it says it can't because the
> > context already exists.  With 5.0.x the context was removed completely.
> > Does anyone know if this is a bug or if the behavior of the ant tasks
> > have changed?  I couldn't find anything specifically about this in the
> > changelog.
> 
> There's a FAQ entry on this:
> http://jakarta.apache.org/tomcat/faq/windows.html#lock

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: error-page not working properly

2004-12-13 Thread Chris Cherrett
Seems that I have preformed an ID10T error!

Thanks for the help

 != 


Thanks for the help

On December 13, 2004 01:13 pm, Steve Kirk wrote:
> > -Original Message-
> > From: Chris Cherrett [mailto:[EMAIL PROTECTED]
> >
> > Is there a way to catch all exceptions that works in Tomcat 5
>
> You can catch all Exceptions/Throwables and their subclasses by configuring
> java.lang.Exception or java.lang.Throwable in the  tag. 
> However there is no corresponding wildcard to catch more than one
>  at a time, so you have to config each code separately.
>
>
>
> -
> 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: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Jon Doe
Hi,
Because this processing servlet of yours itself had an error.  A JSP
file by default is processed by Tomcat's JSP servlet, not your Router
servlet.  Accordingly, it's not subject to your custom error handling
mechanism.  A more standard way to do this is declare an 
for 404's in your web.xml, and/or an errorPage for the specific JSP page
in the JSP page itself.
Sorry, not sure I understand this. Is this not what I've done with this?:
   404
   /404.html
   
My understanding of how this works is that any URL that ends with the string 
'.ext' will be picked up by my Servlet. Any other URL ('.jpg', '.jsp' or 
whatever) will thus fall through this, and my Router servlet will not see 
it. It keeps falling to the error-page code above.

Have you any sample code you would be kiind enough to paste? I'm obviously 
being thick here. :(

Joe.

Yoav Shapira http://www.yoavshapira.com

>Here is my web.xml file:
>
>
>2.3//EN
>" "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>My server
>
>Router
>com.mycompany.Router
>
>InitServlet
>
com.mycompany.InitServlet
>2
>
>
>InitServlet
>/InitServlet
>
>
>Router
>*.ext
>
>
>
>30
>
>index.html
>
>404
>/404.html
>
>
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Query with 404 error processing -- Tomcat 5.0.19

2004-12-13 Thread Shapira, Yoav

Hi,

>Sorry, not sure I understand this. Is this not what I've done with
this?:
>
>404
>/404.html
>

Yeah, that is what you've done.  I didn't read your original web.xml
carefully enough it seems ;)

>My understanding of how this works is that any URL that ends with the
>string
>'.ext' will be picked up by my Servlet. Any other URL ('.jpg', '.jsp'
or
>whatever) will thus fall through this, and my Router servlet will not
see
>it. It keeps falling to the error-page code above.

That understanding is correct.

Enable (comment in) the AccessLogValve in your server.xml.  That way you
will be able to see exactly what requested URLs result in 404s.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log on linux

2004-12-13 Thread Andrea Prandini
Hi,

I've got some production enviorment installed on linux with Tomcat 5 and
Tomcat 4.1. I've configured tomcat for logging as configured in the standard
server.xml (using FileLogger) and everything works fine. My problem is that
i find too many log files with the extension .gz. Seems that there's a
scheduled job that compress the log files stored in logs directory. The
first time creates localhost_log.2004-11-28.txt.1.gz, after few days
localhost_log.2004-11-28.txt.1.gz.1.gz and on. Someone can help me and told
if this is a configurations of tomcat.

Thanks in advance

Andrew


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Debugging missing web.xml on V5.5.4

2004-12-13 Thread alan . sinclair
Hi,
I see there has been some traffic on this issue in the past but it has not 
helped me resolve my problem. I cannot automatically deploy a war file on 
Tomcat 5.5.4  I can successfully deploy the same war if I manually extract the 
war contents into the webapps directory. When the running Tomcat attempts to 
auto deploy the war, the following error occurs:

INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext

How can I debug this problem? Is there a way to increase the debugging level in 
Tomcat 5.5.4 to eject more useful logging information to determine the cause?

Thanks for any suggestion.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 / Admin How ?

2004-12-13 Thread Shapira, Yoav

Hi,

>Can any one guide me or point me to the documents  where i will get the
>steps to  assimilate the admin with  tomcat ??

Ahh, the Borg.

Anyways, simple:
- Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
- Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
- Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in
the Manager app how-to.
- That's it.

Yoav Shapira http://www.yoavshapira.com





This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Admin Tool Server::Service Drop Down not Populating (was RE: Tomcat Administration Application)

2004-12-13 Thread Shapira, Yoav

Hi,
You might want to try 5.5.6, as 5.5.4 had at least one relevant Admin
webapp bug.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Kelly, Steve [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 14, 2004 5:15 AM
>To: Tomcat Users List
>Subject: RE: Tomcat Admin Tool Server::Service Drop Down not Populating
>(was RE: Tomcat Administration Application)
>
>Some other strange/interesting behaviour...
>
>Every time I go to the admin login screen I see the following in the
>tomcat log:-
>Org.apache.struts.action.RequestProcessor processMapping
>SEVERE: Invalid path / login was requested
>
>And another SEVERE message I've seen in the log is:-
>Org.apache.struts.action.RequestProcessor processMapping
>SEVERE: Invalid path /Tomcat Server
Administration_files/treeControlTest
>was requested.
>
>Looks like maybe somewhere the "Tomcat Server Administration_files" is
>not being replaced by my own install directory.
>
>Steve.
>
>
>-Original Message-
>From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]
>Sent: 13 December 2004 22:30
>To: Tomcat Users List
>Subject: Tomcat Admin Tool Server::Service Drop Down not Populating
(was
>RE: Tomcat Administration Application)
>
>Unfortunately, my installation exhibits the same behavior.
>
>Typically, the Service (Catalina) menu option shows a drop down of
>configured Hosts, Valves, and Connectors.
>Clicking the Drop Down (Magnifying glass?) returns nothing under the
>branch.
>
>Going to the Actions Drop Down, and choosing 'Delete Existing..' does
>return a list of the configured Services.
>
>Anyone else on List know cause/solution?
>
>My Environments:
>Tomcat 5.5.4
>Windows 2000 Pro
>Windows 2003 Server Standard
>Sun J2SE 5.0
>
>-Original Message-
>From: Kelly, Steve [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 13, 2004 12:27 PM
>To: Tomcat Users List
>Subject: RE: Tomcat Administration Application
>
>James,
>
>Thanks for that. That's done the trick. Dunno why there was not a valid
>admin.xml file as there is on the Windows install.
>
>However, I still have a problem. I'd expect to see a tree a bit like
>this when I get into the admin application:
>Tomcat Server
>Service (Catalina)
>Host (localhost)
>Context (/)
>Context (/admin)
>Context (/manager)
>Etc
>
>But I just see as far down as Service(Catalina).
>
>Any clues.
>
>TIA
>
>Steve.
>
>-Original Message-
>From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]
>Sent: 13 December 2004 15:54
>To: Tomcat Users List
>Subject: RE: Tomcat Administration Application
>
>Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
>Tomcat 5.5 is on Windows.
>
>Anyway, was looking at the files for the tar.gz release of the admin
>tools.
>
>Verify that you do indeed have a conf\Catalina\localhost\admin.xml
>(double check file permissions as well) This is what re-maps requests
>for /admin to \server\webapps\admin.
>
>
>To me, it does not appear to have a  proper context path specified?
>Is the context mapping assumed?  Based on the name of the file?
>
>If required? Modify conf\Catalina\localhost\admin.xml with a path, like
>so;
>
> privileged="true" antiResourceLocking="false"
>antiJARLocking="false">
>
>
>This should override the generic page in \webapps\ROOT\admin\
>
>
>-Original Message-
>From: Kelly, Steve [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 10, 2004 2:52 PM
>To: Tomcat Users List
>Subject: RE: Tomcat Administration Application
>
>James,
>
>I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
>installed in the jakarta-tomcat-5.5.4 directory.
>
>Even if I undeploy the admin application and then deploy it specifying
>the $CATALINA_HOME/server/webapps/admin directory I still get the same
>same message telling me to download and install the separate admin
>application.
>
>There must be something (can anyone tell me what?) pointing /admin to
>the web page that displays this message.
>
>Steve.
>
>-Original Message-
>From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]
>Sent: 10 December 2004 20:13
>To: Tomcat Users List; Tomcat Users List
>Subject: RE: Tomcat Administration Application
>
>Did you simply extract the .zip file into your Tomcat 5.5.4 install
>directory?
>
>The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
>installation directory is Tomcat 5.5\
>
>So if you simply extracted the zip into your install directory, look
for
>a directory named jakarta-tomcat-5.5.4
>
>Drag & Drop those directory contents to the true tomcat installation
>directory.
>
>Perhaps the .zip could be re-packaged and remove the path
>jakarta-tomcat-5.5.4 from the archive?
>This would allow users to simply unzip admin.zip into their
installation
>directory.
>
>James
>
>-Original Message-
>From: Kelly, Steve [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 10, 2004 1:47 PM
>To: Tomcat Users List
>Subject: RE: Tomcat Administr

Re: JNDI object not shared among TC instances

2004-12-13 Thread John Smith
 Hmm!

 I beg your pardon, but I will have to ask you a very basic question, indeed
:-)

 Which FAQ do you mean? Tomcat's, JNDI's or Java's?

 I went off crazy looking for it and I couldn't find it. I thought I had
exhausted all other ways to understand this problem . . . and thanks for
sheding light into it.

 If it is impossible to do things the way I thought I could, I will have to
work around it somehow, problably keeping all data structuring the objects'
states in a backend database tables

 I still have a kind of conceptual/phylosophical question. How do you set up
a singleton that would be such for different JVMs instances,  from different
JVMs vendors, different boxes and networks, based on plain JNDI (I mean
without EJBs or DBMS replication)?

 Or, . . . am I day dreaming?

 I really thought this was what JNDI was all about and even EJBs naming was
based on JNDI.

 Thanks

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 8:59 AM
Subject: RE: JNDI object not shared among TC instances



Hi,
Tomcat's JNDI implementation does not support sharing for that matter
even external connections.  (This is in the FAQ by the way).  If you
want to share an object among multiple Tomcat instances via JNDI, you
must use a JNDI provider that supports this.

Yoav Shapira http://www.yoavshapira.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Log on linux

2004-12-13 Thread Shapira, Yoav

Hi,

>first time creates localhost_log.2004-11-28.txt.1.gz, after few days
>localhost_log.2004-11-28.txt.1.gz.1.gz and on. Someone can help me and
told
>if this is a configurations of tomcat.

That someone is not very helpful ;)  You would need to either modify the
archiving program that creates this .gz files to ignore existing .gz
files, or use it or another program to move .gz files out of your logs
directory into an archival location.  Both of these are routine sysadmin
tasks, so you should ask your server administrator for help if you're
not sure how to proceed.

Yoav Shapira http://www.yoavshapira.com





This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 / Admin How ?

2004-12-13 Thread Allistair Crossley
ROTFL.

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 13:55
> To: Tomcat Users List
> Subject: RE: Tomcat 5.5 / Admin How ?
> 
> 
> 
> Hi,
> 
> >Can any one guide me or point me to the documents  where i 
> will get the
> >steps to  assimilate the admin with  tomcat ??
> 
> Ahh, the Borg.
> 
> Anyways, simple:
> - Download jakarta-tomcat-v5.5.6-zip, extract to C:\.
> - Download jakarta-tomcat-v5.5.6-admin.zip, extract to C:\.
> - Edit c:\jakarta-tomcat-5.5.6\conf\tomcat-users.xml as instructed in
> the Manager app how-to.
> - That's it.
> 
> Yoav Shapira http://www.yoavshapira.com
> 
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Application looping

2004-12-13 Thread Shapira, Yoav

Hi,
Two ideas: one, always make sure to return (i.e. a return; statement)
after a request dispatcher forward call.  Two, take Apache out of the
mix for now, test tomcat-standalone.  Once that works, if you need
Apache you can bring it back in and worry about its configuration.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Jim Lynch [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, December 14, 2004 8:36 AM
>To: Tomcat Users List
>Subject: Application looping
>
>Hi, all,
>
>I'm attempting to port an application from one system to another.  I
>originally wrote it on a debian system and ported it to a RH 7.2
>system.  Now I'm trying to move it to a RH 9 system.  I installed the
>latest Tomcat 4.1.31, java 1.4.2_06 and Apache 1.3.  Orignally this
>system had Apache 2, java 1.4.2_05 and Tomcat 4.1.30.  I was never able
>to get mod_jk2 working so that's why I backed off to Apache 1.3.  I
>don't think that made any difference since the application continues to
>loop in either configuration.  It boils down to the following code.
>
>I have a method in my servlet class that looks like:
>
>  protected void getJspPage(HttpServletRequest request,
>HttpServletResponse response, String
pageName){
>
>RequestDispatcher dispatcher =
request.getRequestDispatcher(pageName);
>
>try{
>  _logger.debug("Dispatcher is Dispatching "+pageName);
>  dispatcher.forward(request, response);
>  _logger.debug("Done");
>}catch ( Exception e ) {
>  _logger.debug("Exception in RequestHandler.getJspPage -
>"+e.toString());
>}
>  }
>
>It is invoked by the following:
>
>  private final String SELECT_PAGE ="nindex.jsp";
>...
>  request.setAttribute("Notes","Add unique notes for this data
set");
>  getJspPage(request, response, SELECT_PAGE);
>  _logger.debug("Good bye");
>  return;
>
>I have a javascript alert message in nindex.jsp that tells me it was
>loaded into the browser.
>
>The problem is that the dispatcher.forward method never returns.  I
>never see the "Good bye" message in the log.
>
>Here's from the log:
>
>04-12-14 07:01:40|DEBUG|
>manpower.servlets.NafoServlet|Dispatcher is Dispatching nindex.jsp
>04-12-14 07:01:40|DEBUG|   manpower.servlets.NafoServlet|Into
>NafoServlet Url =/nindex.jsp
>04-12-14 07:01:40|DEBUG|
>manpower.servlets.NafoServlet| Resources
Servlet
>running 
>
>The first line is from the previously mentioned method.  The second and
>third line are from the servelet and are issued when the servlet
>starts.  The alert message never gets displayed except the first time
>the jsp is loaded.
>
>The log fills up with messages showing the same code being executed
over
>and over.  Note there is no delay in the time the servlet (supposedly)
>ends and starts up again.
>
>I'm stumped.  It continues to work on Debian and RH 7.2 but fails on RH
>9 with updated Tomcat and Java.
>
>Any suggestions?
>
>Thanks,
>Jim.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI object not shared among TC instances

2004-12-13 Thread Shapira, Yoav

Hi,

> Thanks Joav and for the other people stumbling on the same rock

You're welcome -- and it's Yoav with a Y ;)

> and by the way why don't they use a search box at
>http://jakarta.apache.org/tomcat/faq/  ?

Because we'll all Googleheads who routinely do inurl: searches.  The
search box is a decent idea, thanks for bringing it up.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Administration Application

2004-12-13 Thread Peter Johnson
Ok so it looks like it has always been called test
PJ
Peter Johnson wrote:
I have 5.5.4 and the admin apps tree navigation appears unusable. 
Could it have something to do with the following

DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get 
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/setUpTree'
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.SetUpTreeAction
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance

DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor25 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

The tree link is also 
http://localhost:8080/admin/treeControlTest.do?tree=

It is the "Test" bit that has me wondering. Clicking the above link 
generates

DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Get 
module name for path /treeControlTest.do
DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/treeControlTest'
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.TreeControlTestAction
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

Has someone been playing / trying something and checked in the 
"testing" version somewhere?

PJ
Kelly, Steve wrote:
James,
Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.
However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
   Service (Catalina)
   Host (localhost)
   Context (/)
   Context (/admin)
   Context (/manager)Etc
But I just see as far down as Service(Catalina).
Any clues.
TIA
Steve.
-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.
Anyway, was looking at the files for the tar.gz release of the admin
tools.
Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.
To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?
If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

antiJARLocking="false">


This should override the generic page in \webapps\ROOT\admin\
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: 
Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory.
Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.
There must be something (can anyone tell me what?) po

Re: Tomcat Administration Application

2004-12-13 Thread Peter Johnson
Ok so it looks like it has always been called test
PJ
Peter Johnson wrote:
I have 5.5.4 and the admin apps tree navigation appears unusable. 
Could it have something to do with the following

DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get 
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/setUpTree'
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.SetUpTreeAction
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance

DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor25 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

The tree link is also 
http://localhost:8080/admin/treeControlTest.do?tree=

It is the "Test" bit that has me wondering. Clicking the above link 
generates

DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Get 
module name for path /treeControlTest.do
DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - 
Module name found: default
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- Processing a 'GET' for path '/treeControlTest'
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.TreeControlTestAction
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] 
- action: Tree expand/contract on
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
- processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null]) 

DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

Has someone been playing / trying something and checked in the 
"testing" version somewhere?

PJ
Kelly, Steve wrote:
James,
Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.
However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
   Service (Catalina)
   Host (localhost)
   Context (/)
   Context (/admin)
   Context (/manager)Etc
But I just see as far down as Service(Catalina).
Any clues.
TIA
Steve.
-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.
Anyway, was looking at the files for the tar.gz release of the admin
tools.
Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.
To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?
If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

antiJARLocking="false">


This should override the generic page in \webapps\ROOT\admin\
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] Sent: 
Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory.
Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.
There must be something (can anyone tell me what?) po

RE: JSP expressions are displayed as string

2004-12-13 Thread Allistair Crossley
it instructs tomcat to use the expression language engine I *think*

> -Original Message-
> From: Thomas Chille [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 12:07
> To: Tomcat Users List
> Subject: Re: JSP expressions are displayed as string
> 
> 
> Hi,
> 
> last night i stepped during the upgrade from TC4 to TC5 and from
> JSTL1.0 to JSTL1.1 into the same problem. And fortunately changing the
> 2.3er DTD entry to an 2.4er Schema entry solved my problem.
> 
> But i dont know why. 
> 
> What has this entry to do with the execution of JSTL-Expressions? 
> 
> Thanks in advice for any hint,
> thomas!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WebDAV servlet bug for UTF-8 characters

2004-12-13 Thread Mark Thomas
Sorry for the delayed reply. You need to set URIEncoding="UTF-8" in the
connector.

Mark

> -Original Message-
> From: Garret Wilson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 29, 2004 11:52 PM
> To: Tomcat Users List
> Subject: WebDAV servlet bug for UTF-8 characters
> 
> I have a file with the character RIGHT SINGLE QUOTATION MARK 
> U+2019 in 
> the title. The file is listed fine when I browse to the Tomcat WebDAV 
> enabled directory with a browser. Clicking on the file attempts to 
> browse to the file, with the character UTF-8 encoded as 
> %E2%80%99, but 
> Tomcat indicates that the file is unavailable. I don't know 
> if this is a 
> Tomcat or a Tomcat WebDAV servlet bug.
> 
> Garret
> 
> -
> 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: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread footh
Update - the problem I had with installing the second
service is that I was first using a dash (-) in the
name, and then an underscore (_) both of which were
giving a strange error.  Then, I hadn't realized that
you can only have one port 80 per NIC so that was
obviously causing problems for a while.

So, I got the second service installed and I changed
the "configure" start menu item to point to the new
service.  All the directories were correctly pointing
to the new install directory (and a new registry entry
was created for the new Tomcat service).  Things seems
to be working fine now.


--- footh <[EMAIL PROTECTED]> wrote:

> Thanks, I already read that but didn't quite
> understand how I could use that information for my
> setup.
> 
> First off, I want to run Tomcat as a service and
> that
> seems to talk about running multiple instances with
> the startup script.
> 
> Second, item number 4 more or less says for multiple
> instances "you can use CATALINA_BASE" as an argument
> but doesn't really explain CATALINA_BASE.  Is it the
> install directory of Tomcat?  Or is it a directory
> where I have another set up "webapps" and context
> configuration files.  I can't quite visualize what
> it
> means to use CATALINA_BASE and how to set up the
> directories.
> 
> 
> --- Tino Schöllhorn
> <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi,
> > 
> > as far as I know you can't run the installer
> twice.
> > To run several 
> > identical instances of tomcat you can use the
> > information of the 
> > follwoing url:
> > 
> >
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
> > 
> > It helped me a lot.
> > 
> > Tino
> > 
> > 
> > footh wrote:
> > > I have a server with several IP addresses and
> I'd
> > like
> > > to have two separate instances of Tomcat
> listening
> > on
> > > two of the IP addresses.  I want both of these
> > > instances to be a  separate service as well.
> > > 
> > > I already had one Tomcat installation on the
> > server
> > > and I attempted to run the installer again under
> a
> > > different directory.  Then I modified the
> > service.bat
> > > file to give the service a different name and I
> > tried
> > > to install this new instance.  However, I
> received
> > an
> > > error.
> > > 
> > > Additionally, it seems both installations point
> to
> > the
> > > same registry configuration entries which has
> > > directory-specific values (pointing the the
> > directory
> > > of the last installion of Tomcat I performed).
> > > 
> > > So, I'm thinking I'm not doing this the right
> way.
> >  I
> > > read the RUNNING.txt file and searched the
> mailing
> > > list but I can't seem to find information
> specific
> > to
> > > what I need to do.  Could someone possibly offer
> a
> > > suggestion for setting this up?
> > > 
> > > Regards,
> > > JF
> > > 
> > > 
> > > 
> > >   
> > > __ 
> > > Do you Yahoo!? 
> > > Yahoo! Mail - 250MB free storage. Do more.
> Manage
> > less. 
> > > http://info.mail.yahoo.com/mail_250
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
> __ 
> Do you Yahoo!? 
> Yahoo! Mail - now with 250MB free storage. Learn
> more.
> http://info.mail.yahoo.com/mail_250
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat Admin Tool Server::Service Drop Down not Populating (was RE: Tomcat Administration Application)

2004-12-13 Thread Montz, James C. (James Tower)
Unfortunately, my installation exhibits the same behavior.

Typically, the Service (Catalina) menu option shows a drop down of
configured Hosts, Valves, and Connectors.
Clicking the Drop Down (Magnifying glass?) returns nothing under the
branch.

Going to the Actions Drop Down, and choosing 'Delete Existing..' does
return a list of the configured Services.

Anyone else on List know cause/solution?

My Environments:
Tomcat 5.5.4
Windows 2000 Pro
Windows 2003 Server Standard
Sun J2SE 5.0

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 12:27 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.

However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
Service (Catalina)
Host (localhost)
Context (/)
Context (/admin)
Context (/manager) 
Etc

But I just see as far down as Service(Catalina).

Any clues.

TIA

Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.

Anyway, was looking at the files for the tar.gz release of the admin
tools.

Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.


To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?

If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;




This should override the generic page in \webapps\ROOT\admin\


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.

There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.

Steve.

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2004 20:13
To: Tomcat Users List; Tomcat Users List
Subject: RE: Tomcat Administration Application

Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?

The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\

So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4

Drag & Drop those directory contents to the true tomcat installation
directory.

Perhaps the .zip could be re-packaged and remove the path
jakarta-tomcat-5.5.4 from the archive?
This would allow users to simply unzip admin.zip into their installation
directory.

James

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 1:47 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Wade,

Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.

Steve.  

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 17:27
To: Tomcat Users List
Subject: Re: Tomcat Administration Application

Kelly, Steve wrote:
> I've just installed Tomcat 5.5.4. I also downloaded the separate 
> Tomcat Administration application. But when I click the Tomcat 
> Administration button I still get the message saying the web 
> application is no longer installed by default. From the Tomcat manager

> it says that application 'admin' is running. What else do I need to do
to get into it ?
>  
> TIA,
>  
> Steve.
> 

Well, I assume that first page you are talking about is static, so it
has no idea about the management app.  You could probably find and
modify the link, and the other thing is from your manager application
find the context for the admin app and type in
http://yourservername:yourport/contextname

Wade


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EM

Re: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread Wolfgang Hackl
footh wrote:
[running more than one Tomcat on a single machine]
First off, I want to run Tomcat as a service and that
seems to talk about running multiple instances with
the startup script.
It is likely that you want to use one version of Tomcat to run your web 
sites. So, I assume you have downloaded a distribution and put it 
somewhere on your server. This location is called CATALINA_HOME. For a 
single instance CATALINA_HOME = CATALINA_BASE, i.e. no need to care about.

Second, item number 4 more or less says for multiple
instances "you can use CATALINA_BASE" as an argument
but doesn't really explain CATALINA_BASE.  Is it the
install directory of Tomcat?  Or is it a directory
where I have another set up "webapps" and context
configuration files.  I can't quite visualize what it
means to use CATALINA_BASE and how to set up the
directories.
If you want to have more than one operating system service, you must 
copy certain parts (mostly configuration files) from your CATALINA_HOME 
directory to a new location. This new directory is called CATALINA_BASE. 
  A CATALINA_BASE is a directory containing configuration files etc. 
that are individual to an OS service. The executable files do not need 
to be copied since they will be re-used.

You need to call service.bat with appropriate parameters (CATALINA_BASE 
is the most important one) in order to install an OS service. The 
init-scripts (Unix) or registry settings (for Windows look around at 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\SERVICES\Apache Tomcat) for 
the service always call the same tomcat executables. The service 
parameters determine wich config files to use.

So for each Tomcat instance, you need to change the server.xml in the 
specific CATALINA_BASE to have your services listening to different IP 
addresses and/or TCP ports (same changes for shutdown port and AJP 
connectors necessary).

I hope this helps. If it is not sufficient, I could provide you with a 
screenshot of my directory layout.

Wolfgang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread QM
On Mon, Dec 13, 2004 at 08:50:18AM -1000, Seth Ladd wrote:
: >Another alternative would be to externalize the service itself onto a
: >separate server, so you don't need to worry about shutting it down at
: >all ;)
: 
: Well, that's kind of what we do now.  We expose the service via Hessian, 
: so that all webapps can access it (and avoid classloading issues of 
: implementation classes).  I was hoping to avoid the overhead and expose 
: as regular classes via JNDI.

You have a tradeoff here: "overhead" vs "scalability/maintainability."

I'm a big fan of the latter, especially given that you may have trouble
getting your singleton to exist on multiple machines when your app
grows. ;)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Administration Application

2004-12-13 Thread Peter Johnson
I have 5.5.4 and the admin apps tree navigation appears unusable. Could 
it have something to do with the following

DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Get 
module name for path /setUpTree.do
DEBUG http-8080-Processor25 org.apache.struts.util.ModuleUtils - Module 
name found: default
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor - 
Processing a 'GET' for path '/setUpTree'
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.SetUpTreeAction
DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance

DEBUG http-8080-Processor25 org.apache.struts.action.RequestProcessor - 
processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null])
DEBUG http-8080-Processor25 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

The tree link is also http://localhost:8080/admin/treeControlTest.do?tree=
It is the "Test" bit that has me wondering. Clicking the above link 
generates

DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Get 
module name for path /treeControlTest.do
DEBUG http-8080-Processor23 org.apache.struts.util.ModuleUtils - Module 
name found: default
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor - 
Processing a 'GET' for path '/treeControlTest'
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-  Looking for Action instance for class 
org.apache.webapp.admin.TreeControlTestAction
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor 
-   Returning existing Action instance
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Entered TreeControlTestAction:perform()
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Tree expand/contract on
INFO http-8080-Processor23 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin] - 
action: Tree expand/contract on
DEBUG http-8080-Processor23 org.apache.struts.action.RequestProcessor - 
processForwardConfig(ForwardConfig[name=Tree Control 
Test,path=/tree-control-test.jsp,redirect=false,contextRelative=false,module=null])
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null
DEBUG http-8080-Processor23 
org.apache.catalina.core.ApplicationDispatcher - 
servletPath=/tree-control-test.jsp, pathInfo=null, queryString=null, 
name=null

Has someone been playing / trying something and checked in the "testing" 
version somewhere?

PJ
Kelly, Steve wrote:
James,
Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.
However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
   Service (Catalina)
   Host (localhost)
   Context (/)
   Context (/admin)
   Context (/manager) 
   Etc

But I just see as far down as Service(Catalina).
Any clues.
TIA
Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.
Anyway, was looking at the files for the tar.gz release of the admin
tools.
Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.
To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?
If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;

antiJARLocking="false">


This should override the generic page in \webapps\ROOT\admin\
-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,
I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.
There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.
Steve.
-Origi

Re: JSP expressions are displayed as string

2004-12-13 Thread Thomas Chille
On Tue, 14 Dec 2004 12:09:12 -, Allistair Crossley
<[EMAIL PROTECTED]> wrote:
> it instructs tomcat to use the expression language engine I *think*

hmm..., but before (TC 4.0.6 - JSTL1.0 - DTD 2.3) all works fine. 

Upgrading only the Tomcat, the JSTL-Jars, the JSTL-URIs in the JSPs
without upgrading the web.xml to 2.4 let stop the server excecuting
the JSTL-Expressions *SOMETIMES*.

I like to understand what i do, thatswhy my question. But the problem
is solved and if i get no more answer i can live with that.

regards,
thomas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5.5/ Horriable

2004-12-13 Thread Kelly, Steve
It works on 5.0.28. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 14 December 2004 11:54
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: tomcat 5.5/ Horriable


I have given up for the time beeing and switched back to Tomcat 4.1.30 



Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



"Kelly, Steve" <[EMAIL PROTECTED]>
12/14/2004 03:51 PM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
"Tomcat Users List" <[EMAIL PROTECTED]> cc

Subject
RE: tomcat 5.5/  Horriable






In theory you just unzip (Windows) untar (Unix) the admin package to the
same directory as your tomcat install. But as you will see from the
number of other posts on the same or similar subject it still doesn't
work properly.

Hopefully someone will come up with a definitive answer soon.

Steve. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 14 December 2004 10:00
To: Tomcat Users List
Subject: tomcat 5.5/ Horriable 


Dont know  how to include Admin in main server ??


Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information.
If you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited and any
violation thereof would possibly attract penal action.   If you have
received this communication in error, please notify us by reply e-mail
or telephone and immediately and permanently delete the message and any
attachments. TCS accepts no liability for any damage caused by this
email or its attachments due to viruses, interference, interception,
corruption or unauthorized access/use.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT6B6E 


DISCLAIMER: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information.
If you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited and any
violation thereof would possibly attract penal action.   If you have
received this communication in error, please notify us by reply e-mail
or telephone and immediately and permanently delete the message and any
attachments. TCS accepts no liability for any damage caused by this
email or its attachments due to viruses, interference, interception,
corruption or unauthorized access/use.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat5.5/xp/starting problem Please help me

2004-12-13 Thread David Smith
This error can be found using an xml validator. 

Specifically:
   
   config
   /WEB-INF/struts-config.xml
   
   
   application
src.tcs.beans.ApplicationResources
   
Your second init-param block is "opened" with an ending tag.
--David
[EMAIL PROTECTED] wrote:
Hi, 
I am getting following error while starting tomcat .. beasides i have a 
lot of other issues   can anyone look and guide me  what do do ?

I  am also sending  web.xml 

Dec 14, 2004 4:43:43 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 14, 2004 4:43:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 860 ms
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 14, 2004 4:43:44 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: [org.apa
che.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: http://www.cnn.com], [org.apache.
webapp.balancer.rules.RequestParameterRule: Target param name: paramName / 
Target param value: paramValue / Redirec
t URL: http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.
apache.org]]
Dec 14, 2004 4:43:44 PM org.apache.tomcat.util.digester.Digester 
fatalError
SEVERE: Parse Fatal Error at line 39 column 5: The element type "servlet" 
must be terminated by the matching end-ta
g "".
org.xml.sax.SAXParseException: The element type "servlet" must be 
terminated by the matching end-tag "".
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.
java:236)
   at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
   at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
   at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmen
tScannerImpl.java:1219)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatc
h(XMLDocumentFragmentScannerImpl.java:1685)
   at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentS
cannerImpl.java:368)
   at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)


==CONTENT OF  web.xml 
++




http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
   version="2.4">

 Welcome to Tomcat
  Welcome to Tomcat 


   
   action
org.apache.struts.action.ActionServlet
   
   config
   /WEB-INF/struts-config.xml
   
   
   application
src.tcs.beans.ApplicationResources
   

debug
2


detail
2

   1
   
   
   action
   *.do
   


 
   /WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld
 
  
   /WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld
 
  
   /WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
 


Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
DISCLAIMER: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information.   If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited and any violation thereof would possibly attract penal action.   If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. TCS accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorized access/use.
 


Re: WAR files and Eclipse

2004-12-13 Thread Rhino
It's actually very easy to do what you want to do.

Assuming you have correctly installed and configured Sysdeo, you will need
to tell Eclipse where the War file for your Tomcat project should be
generated. This is done on a *project* basis, i.e. you have to repeat this
step once for each Tomcat project you create but you will never have to do
this again for a given project unless you change the location where you want
the War file.

1. Select the Tomcat project in the Package Explorer perspective.
2. Right click for a context menu. Choose 'Properties'.
3. Within Properties, choose 'Tomcat' from the tree on the left.
4. Click on the 'Export to WAR settings' tab within the Tomcat properties.
5. Enter the path that tells Tomcat where to generate your War file. The
path name should include the file name of the War file. I normally put my
War files in a folder called 'war' directly beneath the project so my "WAR
file for export" looks like this:
D:\eclipse\workspace\MyProject\war\MyProject.war. Naturally, you are free to
organize your files differently.
6. Click on OK to close the Properties dialog.

Then, every time you want to regenerate your War file, all you need to do is
this:
1. Select the Tomcat project in the Package Explorer perspective.
2. Right-click for a context menu. Choose 'Tomcat project'.
3. Choose 'Export to the war file sets in project properties'.
4. You should get a brief message that tells you the operation worked.

Now, if you don't find Tomcat in the Properties tree or if you don't see the
'Tomcat project' option in the context menu, it means you probably didn't
configure Sysdeo correctly. Don't worry, it's not that hard to fix. Just let
us know and we'll try to help.

Rhino

- Original Message - 
From: "Daniel Watrous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 3:43 PM
Subject: WAR files and Eclipse


Hello All,

I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.

Daniel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OutOfMemory Errors

2004-12-13 Thread Ivan F. Martinez

On Mon, 13 Dec 2004 13:31:50 -0500
Asim Alp <[EMAIL PROTECTED]> wrote:

AA> Hello Peter,
AA> 
AA> Sorry.  My system config is:
AA> 
AA> Windows Server 2003
AA> Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2
AA> mod_jk/1.2.6 Tomcat 5.5.4
AA> sun jdk 1.5.0-b64

Have you tried with JDK 1.4.x ?
I have one app that "eat" all memory when running on jdk 1.5.0, and
works fine on 1.4.x.
I did not find any memory leak in APP. I think is related with JDK 1.5.0


-- 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OutOfMemory Errors

2004-12-13 Thread Asim Alp
Thank you for the suggestion.  Actually, we have upgraded from JDK
1.4.x to JDK 1.5.0 hoping to solve the problem, so I doubt that it is
JDK related.


On Mon, 13 Dec 2004 19:38:14 -0200, Ivan F. Martinez <[EMAIL PROTECTED]> wrote:
> 
> On Mon, 13 Dec 2004 13:31:50 -0500
> Asim Alp <[EMAIL PROTECTED]> wrote:
> 
> AA> Hello Peter,
> AA>
> AA> Sorry.  My system config is:
> AA>
> AA> Windows Server 2003
> AA> Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2
> AA> mod_jk/1.2.6 Tomcat 5.5.4
> AA> sun jdk 1.5.0-b64
> 
> Have you tried with JDK 1.4.x ?
> I have one app that "eat" all memory when running on jdk 1.5.0, and
> works fine on 1.4.x.
> I did not find any memory leak in APP. I think is related with JDK 1.5.0
> 
> --
> 
> -
> 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.6 Admin Package

2004-12-13 Thread Hassan Schroeder
Charlie Yates wrote:
Is there any documentation available that describes how to install 
> and configure the Admin webapp ...
put both tar files in the same directory; untar them. Done. :-)
OK, you also need to add a user whose roles include 'admin' to
   $CATALINA_HOME/conf/tomcat-users.xml
And if you're using the minimal server.xml example, you'll want to
add the two Listeners from the top of the full server.xml.
(re)start Tomcat...
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: webapp's log4j config acting wonky

2004-12-13 Thread Mike Curwen
Fixed!

The first thing I tried was to remove the log4j.properties file from
WEB-INF/classes and restarted TC.  It was still logging! and what's more, it
was logging to the file I had specified in the since-removed
log4j.properties file.  So, there is only one other app on the same TC
instance; a copy of the first app. I removed its log4j.properties file as
well.  Both apps on restart were still logging!  serious wtf!

Shut down TC, blew away its work directory, rm -r'd all over the place...
restarted, and finally got the "there are no appenders configured for this
logger" message (twice, once for each app). 

Brought it down again, upgraded the log4j.jar to 1.2.9 (I was probably
already using 1.2.8 actually), and then did the modifications you suggested
to the log4j.properties as below:


#log4j.properties

log4j.rootLogger=DEBUG, filer
log4j.logger.com.gb.security=WARN

log4j.appender.filer=org.apache.log4j.RollingFileAppender
log4j.appender.filer.layout=org.apache.log4j.PatternLayout
log4j.appender.filer.layout.ConversionPattern=%-5p %c - [%m] %d{ISO8601}%n 
log4j.appender.filer.File=/path/to/the/log/file/debug.log
log4j.appender.filer.MaxFileSize=100KB
log4j.appender.filer.MaxBackupIndex=4


Put this in one app, and got one "there are no appenders configured..." and
one debug.log file in the right location.  Put the other app's
log4.properties file in place, restarted, and now my two webapps are merrily
DEBUGing.

I'm getting debug messages that I had forgotten I should have been getting!


Also, thanks for the info re: loggers and additivity.


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 13, 2004 2:27 PM
> To: Tomcat Users List
> Subject: Re: webapp's log4j config acting wonky
> 
>  wherein Jacob gives good advice..


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JSP expressions are displayed as string

2004-12-13 Thread Thomas Chille
Hi,

last night i stepped during the upgrade from TC4 to TC5 and from
JSTL1.0 to JSTL1.1 into the same problem. And fortunately changing the
2.3er DTD entry to an 2.4er Schema entry solved my problem.

But i dont know why. 

What has this entry to do with the execution of JSTL-Expressions? 

Thanks in advice for any hint,
thomas!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5.5/ Horriable

2004-12-13 Thread birendar . waldiya

I have given up for the time beeing and switched back to Tomcat 4.1.30 



Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com



"Kelly, Steve" <[EMAIL PROTECTED]> 
12/14/2004 03:51 PM

Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>


To
"Tomcat Users List" <[EMAIL PROTECTED]>
cc

Subject
RE: tomcat 5.5/  Horriable






In theory you just unzip (Windows) untar (Unix) the admin package to the
same directory as your tomcat install. But as you will see from the
number of other posts on the same or similar subject it still doesn't
work properly.

Hopefully someone will come up with a definitive answer soon.

Steve. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 14 December 2004 10:00
To: Tomcat Users List
Subject: tomcat 5.5/ Horriable 


Dont know  how to include Admin in main server ??


Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information.
If you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited and any
violation thereof would possibly attract penal action.   If you have
received this communication in error, please notify us by reply e-mail
or telephone and immediately and permanently delete the message and any
attachments. TCS accepts no liability for any damage caused by this
email or its attachments due to viruses, interference, interception,
corruption or unauthorized access/use.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT6B6E 


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

RE: Using mailing lists

2004-12-13 Thread Mark Thomas
To get messages 123 through 145 (a maximum of 100 per request), mail:
   <[EMAIL PROTECTED]>

To get an index with subject and author for messages 123-456 , mail:
   <[EMAIL PROTECTED]>

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send an empty message to:
   <[EMAIL PROTECTED]> 

> -Original Message-
> From: Charlie Yates [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 13, 2004 9:31 PM
> To: Tomcat Users List
> Subject: Using mailing lists
> 
> I have tried to get an index of messages but have been 
> unsuccessful.  I used the mailng address of  
> [EMAIL PROTECTED] to see if I 
> could get anything but got zero results.  How should I use 
> the mailing list to get an index of messages.
> 
> Thanks,
> 
> Charlie
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Log File Not Genetrated In tomcat 5.5

2004-12-13 Thread Allistair Crossley
Alternatively, please copy in your stdout / console error messages so we can 
help your specific problems.

Allistair.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 10:38
> To: [EMAIL PROTECTED]
> Subject: Log File Not Genetrated In tomcat 5.5
> 
> 
> 
> Hi 
>  I tried to use tomcat5.5  but it came up wit   alot ogf problem ..
> 
> I am not getting even log file  ..
> i  created  a new folder in webapps   bsw/  and all folder 
> structure as 
> per   requirement   web-inf , web-inf/classes  etcs   and im 
> trying to 
> access a jsp in context bsw,
> my question is   how do i enable the log for this context 
>  and how do i add a new context  , should i add a new context 
> manually by 
> copying from  tomcat 4.1.30 
> 
> please help me ..
> 
> thanks 
> 
> 
> 
> Birendar Singh Waldiya
> 
> 
> DISCLAIMER: The information contained in this e-mail message 
> and/or attachments to it may contain confidential or 
> privileged information.   If you are not the intended 
> recipient, any dissemination, use, review, distribution, 
> printing or copying of the information contained in this 
> e-mail message and/or attachments to it are strictly 
> prohibited and any violation thereof would possibly attract 
> penal action.   If you have received this communication in 
> error, please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message and any 
> attachments. TCS accepts no liability for any damage caused 
> by this email or its attachments due to viruses, 
> interference, interception, corruption or unauthorized access/use.
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Log File Not Genetrated In tomcat 5.5

2004-12-13 Thread Allistair Crossley
This is a classic RTFM (read the manual), in particular read 5.5's logging page 
which tells you that per-context log is gone in 5.5. Your logging will be in a 
file called stdout on Windows, or whatever file Linux collects console output 
to. *Do not* copy *anything* from Tomcat 4.1.30. Read the Tomcat 5.5 manual.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 10:38
> To: [EMAIL PROTECTED]
> Subject: Log File Not Genetrated In tomcat 5.5
> 
> 
> 
> Hi 
>  I tried to use tomcat5.5  but it came up wit   alot ogf problem ..
> 
> I am not getting even log file  ..
> i  created  a new folder in webapps   bsw/  and all folder 
> structure as 
> per   requirement   web-inf , web-inf/classes  etcs   and im 
> trying to 
> access a jsp in context bsw,
> my question is   how do i enable the log for this context 
>  and how do i add a new context  , should i add a new context 
> manually by 
> copying from  tomcat 4.1.30 
> 
> please help me ..
> 
> thanks 
> 
> 
> 
> Birendar Singh Waldiya
> 
> 
> DISCLAIMER: The information contained in this e-mail message 
> and/or attachments to it may contain confidential or 
> privileged information.   If you are not the intended 
> recipient, any dissemination, use, review, distribution, 
> printing or copying of the information contained in this 
> e-mail message and/or attachments to it are strictly 
> prohibited and any violation thereof would possibly attract 
> penal action.   If you have received this communication in 
> error, please notify us by reply e-mail or telephone and 
> immediately and permanently delete the message and any 
> attachments. TCS accepts no liability for any damage caused 
> by this email or its attachments due to viruses, 
> interference, interception, corruption or unauthorized access/use.
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: WAR files and Eclipse

2004-12-13 Thread Phillip Qin
It is very easy. Use ant's war task.

-Original Message-
From: Daniel Watrous [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: WAR files and Eclipse


Hello All,

I am new to WAR files and eclipse.  Many searches on google bring me to the
sysdeo tomcat plugin, which I have installed.  I want to know if there is
some standard way to generate a WAR file for deployment.  I have found that
I can export a JAR file and change its name, but in the process the
directory structure is altered.  Maybe you even know about a better IDE than
eclipse for working with web-based projects.  THANKS in advance.

Daniel

!DSPAM:41bdff16171791264215269!


Tomcat 5.5.6 Admin Package

2004-12-13 Thread Charlie Yates
Hello,

Is there any documentation available that describes how to install and 
configure the Admin webapp now that it needs to be downloaded separately from 
Tomcat?

Thank you,

Charlie Yates

WAR files and Eclipse

2004-12-13 Thread Daniel Watrous
Hello All,

I am new to WAR files and eclipse.  Many searches on google bring me to the 
sysdeo tomcat plugin, which I have installed.  I want to know if there is some 
standard way to generate a WAR file for deployment.  I have found that I can 
export a JAR file and change its name, but in the process the directory 
structure is altered.  Maybe you even know about a better IDE than eclipse for 
working with web-based projects.  THANKS in advance.

Daniel

Using mailing lists

2004-12-13 Thread Charlie Yates
I have tried to get an index of messages but have been unsuccessful.  I used 
the mailng address of  [EMAIL PROTECTED] to see if I could get anything but got 
zero results.  How should I use the mailing list to get an index of messages.

Thanks,

Charlie

setting encoding scheme POST data via container

2004-12-13 Thread Quinten Verheyen
Hi, is there a way to specify the encoding character scheme used for form POST 
data on the container level ?

On a JSP level, this is done like this :

..

ps I use Tomcat 5.0.25 on Windows 2000 ..

Thx in advance,
Q

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
will do.

> -Original Message-
> From: Mladen Turk [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 11:25
> To: Tomcat Users List
> Subject: Re: JK 1.2.7 Problem?
> 
> 
> Allistair Crossley wrote:
> > Here is the trace logging. IE just hangs for a long while 
> and does not get anywhere. As soon as 1.2.6 is back in, it 
> works again.
> > 
> 
> Whow!
> Seems that the problem is caused by the fact that beta3 binaries
> are compiled as 'debug' so tolower function is issuing an assertion.
> 
> I'll make a release build and sent it to your email directly.
> Can you check the results with release build?
> 
> 
> Regards,
> Mladen.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Returned mail: see transcript for details

2004-12-13 Thread tomcat-user
This Message was undeliverable due to the following reason:

Your message was not delivered because the destination computer was
not reachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.

Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.

Your message was not delivered within 1 days:
Host 207.54.29.106 is not responding.

The following recipients did not receive this message:
<[EMAIL PROTECTED]>

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
the build you sent me works OK Mladen :)

> -Original Message-
> From: Allistair Crossley 
> Sent: 14 December 2004 11:27
> To: Tomcat Users List
> Subject: RE: JK 1.2.7 Problem?
> 
> 
> will do.
> 
> > -Original Message-
> > From: Mladen Turk [mailto:[EMAIL PROTECTED]
> > Sent: 14 December 2004 11:25
> > To: Tomcat Users List
> > Subject: Re: JK 1.2.7 Problem?
> > 
> > 
> > Allistair Crossley wrote:
> > > Here is the trace logging. IE just hangs for a long while 
> > and does not get anywhere. As soon as 1.2.6 is back in, it 
> > works again.
> > > 
> > 
> > Whow!
> > Seems that the problem is caused by the fact that beta3 binaries
> > are compiled as 'debug' so tolower function is issuing an assertion.
> > 
> > I'll make a release build and sent it to your email directly.
> > Can you check the results with release build?
> > 
> > 
> > Regards,
> > Mladen.
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
>  
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> 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: JK 1.2.7 Problem?

2004-12-13 Thread Mladen Turk
Allistair Crossley wrote:
Here is the trace logging. IE just hangs for a long while and does not get 
anywhere. As soon as 1.2.6 is back in, it works again.
Whow!
Seems that the problem is caused by the fact that beta3 binaries
are compiled as 'debug' so tolower function is issuing an assertion.
I'll make a release build and sent it to your email directly.
Can you check the results with release build?
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat5.5/xp/starting problem Please help me

2004-12-13 Thread Allistair Crossley
stop this 
   



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 11:16
> To: Tomcat Users List
> Subject: Tomcat5.5/xp/starting problem Please help me
> 
> 
> 
> Hi, 
> I am getting following error while starting tomcat .. 
> beasides i have a 
> lot of other issues   can anyone look and guide me  what do do ?
> 
> I  am also sending  web.xml 
> 
> 
> Dec 14, 2004 4:43:43 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Dec 14, 2004 4:43:43 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 860 ms
> Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
> Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Dec 14, 2004 4:43:44 PM 
> org.apache.catalina.core.ApplicationContext log
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
> [org.apache.webapp.balancer.RuleChain: [org.apa
> che.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
> Redirect URL: http://www.cnn.com], [org.apache.
> webapp.balancer.rules.RequestParameterRule: Target param 
> name: paramName / 
> Target param value: paramValue / Redirec
> t URL: http://www.yahoo.com], 
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
> http://jakarta.
> apache.org]]
> Dec 14, 2004 4:43:44 PM org.apache.tomcat.util.digester.Digester 
> fatalError
> SEVERE: Parse Fatal Error at line 39 column 5: The element 
> type "servlet" 
> must be terminated by the matching end-ta
> g "".
> org.xml.sax.SAXParseException: The element type "servlet" must be 
> terminated by the matching end-tag "".
> at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.cr
> eateSAXParseException(ErrorHandlerWrapper.
> java:236)
> at 
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fa
> talError(ErrorHandlerWrapper.java:215)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repor
> tError(XMLErrorReporter.java:386)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repor
> tError(XMLErrorReporter.java:316)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatal
> Error(XMLScanner.java:1438)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca
> nnerImpl.scanEndElement(XMLDocumentFragmen
> tScannerImpl.java:1219)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca
> nnerImpl$FragmentContentDispatcher.dispatc
> h(XMLDocumentFragmentScannerImpl.java:1685)
> at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSca
> nnerImpl.scanDocument(XMLDocumentFragmentS
> cannerImpl.java:368)
> at 
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.
> parse(XML11Configuration.java:834)
> 
> 
> 
> 
> ==CONTENT OF  web.xml 
> ++
> 
> 
> 
> 
> 
> 
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> version="2.4">
> 
>   Welcome to Tomcat
>Welcome to Tomcat 
> 
> 
> 
>  
> 
> 
> action
>  org.apache.struts.action.ActionServlet
> 
> 
> config
> /WEB-INF/struts-config.xml
> 
> 
> 
> application
>  src.tcs.beans.ApplicationResources
> 
> 
>  
>  debug
>  2
>  
> 
>  
>  detail
>  2
>  
>  
> 1
> 
> 
> 
> 
> action
> *.do
> 
> 
> 
> 
> 
>  
> 
>   
> /WEB-INF/struts-html.tld
>  /WEB-INF/struts-html.tld
>   
>
> /WEB-INF/struts-logic.tld
>  /WEB-INF/struts-logic.tld
>   
>
> /WEB-INF/struts-bean.tld
>  /WEB-INF/struts-bean.tld
>   
>  
> 
> 
> 
> 
> Birendar Singh Waldiya
> Tata Consultancy Services Limited
> Mailto: [EMAIL PROTECTED]
> Website: http://www.tcs.com
> 
> DISCLAIMER: The information contained in this e-mail message 
> and/or attachments to it may contain confidential or 
> privileged information.   If you are not the intended 
> recipient, any dissemination, use, review, distribution, 
> printing or copying of the information contained in this 
> e-mail message and/or attachments to it are strictly 
> prohibited and any violation thereof would possibly attract 
> penal action.   If you have received this communication in 
> er

Tomcat5.5/xp/starting problem Please help me

2004-12-13 Thread birendar . waldiya

Hi, 
I am getting following error while starting tomcat .. beasides i have a 
lot of other issues   can anyone look and guide me  what do do ?

I  am also sending  web.xml 


Dec 14, 2004 4:43:43 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 14, 2004 4:43:43 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 860 ms
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Dec 14, 2004 4:43:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 14, 2004 4:43:44 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: [org.apa
che.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: http://www.cnn.com], [org.apache.
webapp.balancer.rules.RequestParameterRule: Target param name: paramName / 
Target param value: paramValue / Redirec
t URL: http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.
apache.org]]
Dec 14, 2004 4:43:44 PM org.apache.tomcat.util.digester.Digester 
fatalError
SEVERE: Parse Fatal Error at line 39 column 5: The element type "servlet" 
must be terminated by the matching end-ta
g "".
org.xml.sax.SAXParseException: The element type "servlet" must be 
terminated by the matching end-tag "".
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.
java:236)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmen
tScannerImpl.java:1219)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatc
h(XMLDocumentFragmentScannerImpl.java:1685)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentS
cannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)




==CONTENT OF  web.xml 
++







http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

  Welcome to Tomcat
   Welcome to Tomcat 



 


action
 org.apache.struts.action.ActionServlet


config
/WEB-INF/struts-config.xml



application
 src.tcs.beans.ApplicationResources


 
 debug
 2
 

 
 detail
 2
 
 
1




action
*.do





 

  
/WEB-INF/struts-html.tld
 /WEB-INF/struts-html.tld
  
   
/WEB-INF/struts-logic.tld
 /WEB-INF/struts-logic.tld
  
   
/WEB-INF/struts-bean.tld
 /WEB-INF/struts-bean.tld
  
 




Birendar Singh Waldiya
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com

DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

maxActive in server.xml's ResourceParams

2004-12-13 Thread Stephen Charles Huey
In Tomcat 4's server.xml, one of the ResourceParams elements is
maxActive (set to 20 by default).  I'm wondering if there's any reason
why I wouldn't set this very high if I have a virtually unlimited number
of users for our Oracle database...I'm not sure how much this applies to
us since I don't believe we're using built-in connection pooling (we're
using some slightly customized classes--nothing nonstandard, though). 
Anyway, thanks for any tips...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
OK will do ... give me 15 mins

> -Original Message-
> From: Mladen Turk [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 11:00
> To: Tomcat Users List
> Subject: Re: JK 1.2.7 Problem?
> 
> 
> Allistair Crossley wrote:
> > I installed beta 3 this morning and I regret to inform you 
> that it did not work at all. That is to say, it could not 
> send requests to Tomcat for some reason. The only debug 
> logging that appears is:
> 
> Cool. We getting somewhere.
> It's better to not work at all then to work faulty :).
> 
> Can you set the log level to trace, and then post the log
> and workers.properties?
> 
> It would be really helpful!
> 
> Regards,
> Mladen.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: setting encoding scheme POST data via container

2004-12-13 Thread Allistair Crossley
you would need to write a servlet filter and install it via web.xml (copied 
in). 

/*
 * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java,v
 1.1 2001/07/24 00:26:55 craigmcc Exp $
 * $Revision: 1.1 $
 * $Date: 2001/07/24 00:26:55 $
 *
 * 
 *
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in
 *the documentation and/or other materials provided with the
 *distribution.
 *
 * 3. The end-user documentation included with the redistribution, if
 *any, must include the following acknowlegement:
 *   "This product includes software developed by the
 *Apache Software Foundation (http://www.apache.org/)."
 *Alternately, this acknowlegement may appear in the software itself,
 *if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
 *Foundation" must not be used to endorse or promote products derived
 *from this software without prior written permission. For written
 *permission, please contact [EMAIL PROTECTED]
 *
 * 5. Products derived from this software may not be called "Apache"
 *nor may "Apache" appear in their names without prior written
 *permission of the Apache Group.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * 
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * .
 *
 * [Additional notices, if required by prior licensing conditions]
 *
 */

import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;


/**
 * Example filter that unconditionally sets the character encoding to be used
 * in parsing the incoming request to a value specified by the
 * encoding filter initialization parameter in the web app
 * deployment descriptor (/WEB-INF/web.xml).  This filter could
 * easily be extended to be more intelligent about what character encoding to
 * set, based on characteristics of the incoming request (such as the values
 * of the Accept-Language and User-Agent headers,
 * or a value stashed in the current user's session).
 *
 * @author Craig McClanahan
 * @version $Revision: 1.1 $ $Date: 2001/07/24 00:26:55 $
 */

public class SetCharacterEncodingFilter implements Filter {


// - Instance Variables


/**
 * The default character encoding to set for requests that pass through
 * this filter.
 */
protected String encoding = null;


/**
 * The filter configuration object we are associated with.  If this value
 * is null, this filter instance is not currently configured.
 */
protected FilterConfig filterConfig = null;


// - Public Methods


/**
 * Take this filter out of service.
 */
public void destroy() {

this.encoding = null;
this.filterConfig = null;

}


/**
 * Select and set (if specified) the character encoding to be used to
 * interpret request parameters for this request.
 *
 * @param request The servlet request we are processing
 * @param result The servlet response we are creating
 * @param chain The filter chain we are processing
 *
 * @exception IOException if an input/out

Re: JK 1.2.7 Problem?

2004-12-13 Thread Mladen Turk
Allistair Crossley wrote:
I installed beta 3 this morning and I regret to inform you that it did not work at all. That is to say, it could not send requests to Tomcat for some reason. The only debug logging that appears is:
Cool. We getting somewhere.
It's better to not work at all then to work faulty :).
Can you set the log level to trace, and then post the log
and workers.properties?
It would be really helpful!
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


javax.naming.NameNotFoundException: Name java: is not bound in this Context

2004-12-13 Thread Vadim V. Korovinsky

Hello,

Please, help me.
I have an application installed on Tomcat 5.
It was working properly until I append the second host and deployed
this application on it. Now I have "localhost" and "myhost" as
default.
And here is a problem: application works correctly on the "localhost" and at
the "myhost" exception occured during database access:

javax.naming.NameNotFoundException: Name java: is not bound in this Context

at this place: Context envContext  = (Context)initial.lookup("java:/comp/env");

server.xml:


  

  
  
myhost.com
stage.myhost.com
  
  
  


myapp.xml:


  
  

Thank you.

-- 
Best regards,
Vadim  mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: webapp's log4j config acting wonky

2004-12-13 Thread Jacob Kjome
Quoting Mike Curwen <[EMAIL PROTECTED]>:

> Hi all,
>
> I've been using log4j for some time and like it quite a bit.  My configs are
> probably naieve, but they work for me.  But now, another developer has
> pointed something out to me, and yup.. something's busted. I'm posting this
> to tomcat-user because I'm thinking it might be a TC/mywebapp conflict of
> some kind (though I'm not sure where).
>
> Tomcat 5.0.29
> log4j 1.2.1 in my webapp's WEB-INF/lib

You should upgrade.  You very well may be running into bugs in early versions of
1.2.x.  Upgrade to 1.2.9, the current release and test again.

> log4j.properties in my webapp's WEB-INF/classes directory.
>
> I don't have log4j.jar anywhere else and no other log4j.properties files
> anywhere, though perhaps I don't know where to look.
>

One way to check is to remove log4j.properties from WEB-INF/classes and see if
autoconfiguration happens.  You would know this by seeing messages from Log4j
saying something like "there are no appenders configured for this logger".  If
you don't see messages like that, then Log4j is finding a config file somewhere
else.  Log4j looks in the default package (no package) for config files.  If a
config file were in a jar file, it would be in the root of the jar file.

>
> In our JSP pages we have loggers declared like so:
>
> <%@ page import="org.apache.log4j.Logger" %>
> <%!
> Logger logger = Logger.getLogger("pages.abc.page_name");
> %>
> <%
> logger.debug("foo");
> %>
>
>
> "pages" is common throughout every JSP.  "abc" would be a folder name (we've
> got the webapp organized into folders of related functions), and finally
> "page_name" is the name of the JSP file without extension.
>
>
>
> our log4j.properties file is:
>
> #log4j.properties
>
> log4j.rootCategory=DEBUG, filer
>
> log4j.category.com.gb.security=WARN, filer
> log4j.additivity.com.gb.security=false
>
> log4j.appender.filer=org.apache.log4j.RollingFileAppender
> log4j.appender.filer.layout=org.apache.log4j.PatternLayout
> log4j.appender.filer.layout.ConversionPattern=%-5p %c - [%m] %d{ISO8601}%n
> log4j.appender.filer.File=/path/to/the/log/file/debug.log
> log4j.appender.filer.MaxFileSize=100KB
> log4j.appender.filer.MaxBackupIndex=4
>
>
>
> As you'll see we've got the root category to DEBUG and we've piped down our
> com.gb.security package to WARN.  We've got lots of other classes, both
> bundled in WEB-INF/lib jar files and loosely in the WEB-INF/classes  and
> they all spill their log4j output.
>
> But none of our log messages from the JSP pages are coming through.  I've
> tried the following config, but it had no effect:
>
> log4j.category.pages=DEBUG, filer
> log4j.additivity.pages=false
>
>
> *If* I configure the following (adding a 'package' below 'pages'):
>
> log4j.category.pages.abc=DEBUG, filer
> log4j.additivity.pages.abc=false
>
> Then it will work (but obviously only for pages under 'abc').  Also, if I
> remove the additivity, I get two messages. That makes me think there's one
> message from the rootCategory, and one from this category.  But when I
> remove the category 'pages.abc' entirely, we're back to nothing again.
>
>
> Any ideas?  Is there a TC log4j or CL file hiding somewhere?
>

If changes to your config file are being recognized, then it probably isn't a
problem with Log4j using some other config file.  I don't know why your
original config wouldn't work.  It really should.

One note.  You shouldn't be using "rootCategory" and "category", but
"rootLogger", and "logger".  Also, additivity is only necessary when you are
trying to log to a different appender than those of the current logger is
inheriting.  Since you've specified the "filer" appender to the root, you can
simply define the level you want to reset your named logger to rather than also
supplying the "filer" appender and setting additivity to "false".

Oh, one other thing.  I don't know for sure whether order is important in
properties files, but you might define your appenders first and loggers last
with the rootLogger last.  In Log4j XML config files, order is important and
enforced by the dtd (which is not necessary to use with Logj4-1.3, not yet
released, at least non-alpha).


Jake


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: setting encoding scheme POST data via container

2004-12-13 Thread Quinten Verheyen
Thx.

> -Original Message-
> From: Allistair Crossley [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2004 11:42
> To: Tomcat Users List
> Subject: RE: setting encoding scheme POST data via container
> 
> 
> you would need to write a servlet filter and install it via 
> web.xml (copied in). 
> 
> /*
>  * $Header: 
> /home/cvs/jakarta-tomcat-4.0/webapps/examples/WEB-INF/classes/
> filters/SetCharacterEncodingFilter.java,v 1.1 2001/07/24 
> 00:26:55 craigmcc Exp $
>  * $Revision: 1.1 $
>  * $Date: 2001/07/24 00:26:55 $
>  *
>  * 
> 
>  *
>  * The Apache Software License, Version 1.1
>  *
>  * Copyright (c) 1999-2001 The Apache Software Foundation.  All rights
>  * reserved.
>  *
>  * Redistribution and use in source and binary forms, with or without
>  * modification, are permitted provided that the following conditions
>  * are met:
>  *
>  * 1. Redistributions of source code must retain the above copyright
>  *notice, this list of conditions and the following disclaimer.
>  *
>  * 2. Redistributions in binary form must reproduce the above 
> copyright
>  *notice, this list of conditions and the following disclaimer in
>  *the documentation and/or other materials provided with the
>  *distribution.
>  *
>  * 3. The end-user documentation included with the redistribution, if
>  *any, must include the following acknowlegement:
>  *   "This product includes software developed by the
>  *Apache Software Foundation (http://www.apache.org/)."
>  *Alternately, this acknowlegement may appear in the 
> software itself,
>  *if and wherever such third-party acknowlegements 
> normally appear.
>  *
>  * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
>  *Foundation" must not be used to endorse or promote 
> products derived
>  *from this software without prior written permission. For written
>  *permission, please contact [EMAIL PROTECTED]
>  *
>  * 5. Products derived from this software may not be called "Apache"
>  *nor may "Apache" appear in their names without prior written
>  *permission of the Apache Group.
>  *
>  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
>  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
>  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
>  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
>  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
>  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
>  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
>  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
>  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
>  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
>  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
>  * SUCH DAMAGE.
>  * 
> 
>  *
>  * This software consists of voluntary contributions made by many
>  * individuals on behalf of the Apache Software Foundation.  For more
>  * information on the Apache Software Foundation, please see
>  * .
>  *
>  * [Additional notices, if required by prior licensing conditions]
>  *
>  */
> 
> import java.io.IOException;
> import javax.servlet.Filter;
> import javax.servlet.FilterChain;
> import javax.servlet.FilterConfig;
> import javax.servlet.ServletException;
> import javax.servlet.ServletRequest;
> import javax.servlet.ServletResponse;
> 
> 
> /**
>  * Example filter that unconditionally sets the character 
> encoding to be used
>  * in parsing the incoming request to a value specified by the
>  * encoding filter initialization parameter 
> in the web app
>  * deployment descriptor (/WEB-INF/web.xml).  
> This filter could
>  * easily be extended to be more intelligent about what 
> character encoding to
>  * set, based on characteristics of the incoming request 
> (such as the values
>  * of the Accept-Language and 
> User-Agent headers,
>  * or a value stashed in the current user's session).
>  *
>  * @author Craig McClanahan
>  * @version $Revision: 1.1 $ $Date: 2001/07/24 00:26:55 $
>  */
> 
> public class SetCharacterEncodingFilter implements Filter {
> 
> 
> // - 
> Instance Variables
> 
> 
> /**
>  * The default character encoding to set for requests 
> that pass through
>  * this filter.
>  */
> protected String encoding = null;
> 
> 
> /**
>  * The filter configuration object we are associated 
> with.  If this value
>  * is null, this filter instance is not currently configured.
>  */
> protected FilterConfig filterConfig = null;
> 
> 
> // 
> - 
> Public Methods
> 
> 
> /**
>  * Take this fil

RE: error-page not working properly

2004-12-13 Thread Steve Kirk


> -Original Message-
> From: Chris Cherrett [mailto:[EMAIL PROTECTED] 
> 
> Is there a way to catch all exceptions that works in Tomcat 5

You can catch all Exceptions/Throwables and their subclasses by configuring
java.lang.Exception or java.lang.Throwable in the  tag.  However
there is no corresponding wildcard to catch more than one  at a
time, so you have to config each code separately.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: visualgc and tomcat

2004-12-13 Thread Dale, Matt

The process will be named Bootstrap if that is of any use to you. 

Normally this is service related as the owner of the service is not the user 
you are logged in as but that appears not to be so in this case.

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: 14 December 2004 03:50
To: Tomcat Users List
Subject: visualgc and tomcat


I hava a problem finding out the lvmid of the running Tomcat instance.
 I have installed jvmstat 3.0 from Sun.  It works perfectly fine for
all running Java applications but Tomcat.  When I type jps and hit
enter, I don't see Tomcat's lvmid.  I tried using the PID in task
manager, but that didn't work either.  Any suggestions?

BTW, I'm running Tomcat 5.5.4 on Windows Server 2003 with Sun's
jdk1.5.0-b64, and I'm NOT running it as a service.  I use the
startup.bat file.

Thanks,

Asim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
I installed beta 3 this morning and I regret to inform you that it did not work 
at all. That is to say, it could not send requests to Tomcat for some reason. 
The only debug logging that appears is:

[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1004): Using registry.
[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1006): Using log file d:\jakarta-tomcat-jk\logs\isapi.log.
[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1007): Using log level 1.
[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1008): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1009): Using worker file d:\jakarta-tomcat-jk\conf\workers.properties.
[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1010): Using worker mount file 
d:\jakarta-tomcat-jk\conf\uriworkermap.properties.
[Tue Dec 14 10:25:45 2004] [1600:2440] [debug] init_jk::jk_isapi_plugin.c 
(1012): Using uri select 0.

Then it hangs indefinately until an IE Page Not Found default thing is 
produced. I restarted IIS many times and Tomcat also to ensure I got this 
right. Our setup is very very general in terms of JK, meaning that I only had 
to swap in the DLL to test this.

To confirm, I swapped back in the 1.2.6 DLL and everything worked straight away.

I await your suggestions, if any, to help you determine what this could be. 
I've done IIS JK config for a looong time now, so I do not *believe* I have 
made a mistake, although accept this is always a possibility :p

Cheers, Allistair

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker
> Sent: 14 December 2004 06:01
> To: [EMAIL PROTECTED]
> Subject: Re: JK 1.2.7 Problem?
> 
> 
> You could also set the logging level to DEBUG for the category 
> 'org.apache.jk'.  That should give you a hex dump of the 
> problem message 
> with the exception.
> 
> The exception is when Tomcat is parsing the Content-Length 
> header.  However, 
> since it is working on the retry (inferred because it isn't 
> reported to the 
> user), I'm guessing that Mladen is probably correct about the cause.
> 
> "Allistair Crossley" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> Will do. I am off now so it will be tomorrow before I can 
> post anything.
> 
> Cheers, Allistair,
> 
> > -Original Message-
> > From: Mladen Turk [mailto:[EMAIL PROTECTED]
> > Sent: 13 December 2004 18:02
> > To: Tomcat Users List
> > Subject: Re: JK 1.2.7 Problem?
> >
> >
> > Allistair Crossley wrote:
> > > Hi,
> > >
> > > I'm afraid I cannot tell you too much about this. I have no
> > idea why or how I am generating these errors. I'm just
> > stepping around my test web site and and every now and again
> > this error is dumped into stdout. I think it may be the JK
> > 1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat
> > 5.5.5. No error is propogated to the user, it seems to be silent.
> > >
> >
> > Hi can you test the newst beta-3.
> > It might be that you have a socket_timeout property set in 
> your config
> > that was using milliseconds instead seconds.
> >
> > The binaries are at:
> > http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binari
> es/win32/
> 
> Also could you please turn log level to trace and post a log.
> 
> Regards,
> Mladen.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
>  
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5.5/ Horriable

2004-12-13 Thread Kelly, Steve
In theory you just unzip (Windows) untar (Unix) the admin package to the
same directory as your tomcat install. But as you will see from the
number of other posts on the same or similar subject it still doesn't
work properly.

Hopefully someone will come up with a definitive answer soon.

Steve.  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 14 December 2004 10:00
To: Tomcat Users List
Subject: tomcat 5.5/ Horriable 


Dont know  how to include Admin in main server ??


Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or
attachments to it may contain confidential or privileged information.
If you are not the intended recipient, any dissemination, use, review,
distribution, printing or copying of the information contained in this
e-mail message and/or attachments to it are strictly prohibited and any
violation thereof would possibly attract penal action.   If you have
received this communication in error, please notify us by reply e-mail
or telephone and immediately and permanently delete the message and any
attachments. TCS accepts no liability for any damage caused by this
email or its attachments due to viruses, interference, interception,
corruption or unauthorized access/use.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OutOfMemory Errors

2004-12-13 Thread George Sexton
You probably have a resource leak in your application.

You might want to run FindBugs on it:

http://findbugs.sourceforge.net/

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Asim Alp [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 13, 2004 11:32 AM
> To: Tomcat Users List
> Subject: Re: OutOfMemory Errors
> 
> Hello Peter,
> 
> Sorry.  My system config is:
> 
> Windows Server 2003
> Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2 mod_jk/1.2.6
> Tomcat 5.5.4
> sun jdk 1.5.0-b64
> 
> We have a 2 node tomcat cluster each running with the -Xms128m
> -Xmx1024m options.
> 
> We have a heavily loaded JDBC application running and our MySQL server
> has enough max_connections to handle our load.  For now, we have
> Apache, one of the Tomcats and MySQL running on the same machine (2 x
> 3.8 Ghz Intel with 2GB of Ram).  We're also using this server as a
> file server with RAID 5.
> 
> >From Task Managers performance monitor, I'm looking at the Handles (I
> hope I'm looking at the correct thing).  Total number of handles is
> around 30400 (almost two times 16K).  Apache is usually using about
> 3000, Tomcat 5000, MySQL 9000, System 2600, svchost 1000.
> 
> Do these values look normal?
> 
> Asim
> 
> On Mon, 13 Dec 2004 17:53:35 -, Peter Crowther
> <[EMAIL PROTECTED]> wrote:
> > > From: Asim Alp [mailto:[EMAIL PROTECTED]
> > > I'm trying to solve an OOME on our Tomcat.
> > 
> > Tomcat version?
> > JVM version and settings?
> > Application characteristics?
> > Other libraries in use (eg JDBC)?
> > 
> > > We profiled our
> > > application using JProfiler and there are no memory 
> leakages on our
> > > end.  Currently, I'm focusing on some system resource 
> problems such as
> > > file descriptors.  Would this be a valid problem on Windows Server
> > > 2003?  And if so, how can I change the max number of file 
> descriptors?
> > 
> > I suspect someone else will give a better Java solution, but I'm a
> > Windows hack who's a relative latecomer to Java...
> > 
> > You've got 16k to go at by default.  How many are you 
> using, according
> > to Performance Monitor?  And how many in the JVM running Tomcat?
> > 
> > > One last thing...  What other resources should I 
> investigate for this
> > > sort of OOME?
> > 
> > http://www.sysinternals.com/ for 'handle' and Process 
> Explorer if you
> > suspect a resource problem on Windows.
> > 
> > - Peter
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat 5.5/ Horriable

2004-12-13 Thread birendar . waldiya

Dont know  how to include Admin in main server ??


Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

Re: Tomcat 5.5.4 Ant Task

2004-12-13 Thread Remy Maucherat
On Tue, 14 Dec 2004 01:13:04 +0100, Siarhei Dudzin
<[EMAIL PROTECTED]> wrote:
> Yes, antiJARLocking and antiResourceLocking are not enabled by default.
> Unfortunately, non of them (together and separately) did not help to
> solve my problems...

Try harder, it works. Read the FAQ, and verify that they are actually
enabled. If antiResourceLocking is enabled, you should notice it, as
you'll get a cool extended coffee break while Tomcat starts, but you
cannot possibly get any locking (unless you do really crazy stuff,
like accessing files directly yourself using harcoded file paths).

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Seth Ladd
Shapira, Yoav wrote:
Hi,

So while we could put all the classes into common/lib and use a
singleton pattern, I wouldn't have a way to cleanly shut down the
service on app server shutdown (I could be wrong here).

You could use a JVM shutdown hook.  At least that's portable and not
Tomcat-specific.
Another alternative would be to externalize the service itself onto a
separate server, so you don't need to worry about shutting it down at
all ;)
Well, that's kind of what we do now.  We expose the service via Hessian, 
so that all webapps can access it (and avoid classloading issues of 
implementation classes).  I was hoping to avoid the overhead and expose 
as regular classes via JNDI.

Seth
--
http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
http://www.foaf-project.org/";>What is FOAF?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TC4.1.30: AccessLogValve

2004-12-13 Thread Tim Funk
The javadocs should be a little more up to date.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
-Tim
Lemke, Michael IZ/HZA-IOR wrote:
Hm, do you have a pointer on how to go about this?  Couldn't find
anything obvious in the docs.
Thanks,
Michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 3:30 PM
To: Tomcat Users List
Subject: Re: TC4.1.30: AccessLogValve

No can do with the existing logger.
You can instead use a filter to place the value you desire into the 
ServletRequest. Then you can pull the value from the access log via

%{foo}r  (Or whatever you call the variable).
-Tim
Lemke, Michael IZ/HZA-IOR wrote:

Perfect, that did the trick.
Last question.  How does the conditional logging work?  I tried it 
analogous to the Apache docs as %201{Content-Length}i but 
that didn't 

work.  The comments in the source aren't to helpful.
What I want is %{Content-Length}i if status code is 201 else %b
Thanks,
Michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 13, 2004 3:04 PM
To: Tomcat Users List
Subject: Re: TC4.1.30: AccessLogValve

I would try single quotes:
pattern='%h %l %u %t "%r" %s %b %{Referer}i %{User-Agent}i'
-Tim

Lemke, Michael IZ/HZA-IOR wrote:

Thanks, that'll probably do it.  But how do I code it in 
the server.xml

file?  My first experiments aren't liked by tomcat:

How do I get the quotes right?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Shapira, Yoav

Hi,

>So while we could put all the classes into common/lib and use a
>singleton pattern, I wouldn't have a way to cleanly shut down the
>service on app server shutdown (I could be wrong here).

You could use a JVM shutdown hook.  At least that's portable and not
Tomcat-specific.

Another alternative would be to externalize the service itself onto a
separate server, so you don't need to worry about shutting it down at
all ;)

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
Will do. I am off now so it will be tomorrow before I can post anything.

Cheers, Allistair,

> -Original Message-
> From: Mladen Turk [mailto:[EMAIL PROTECTED]
> Sent: 13 December 2004 18:02
> To: Tomcat Users List
> Subject: Re: JK 1.2.7 Problem?
> 
> 
> Allistair Crossley wrote:
> > Hi,
> > 
> > I'm afraid I cannot tell you too much about this. I have no 
> idea why or how I am generating these errors. I'm just 
> stepping around my test web site and and every now and again 
> this error is dumped into stdout. I think it may be the JK 
> 1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat 
> 5.5.5. No error is propogated to the user, it seems to be silent.
> > 
> 
> Hi can you test the newst beta-3.
> It might be that you have a socket_timeout property set in your config
> that was using milliseconds instead seconds.
> 
> The binaries are at:
> http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binari
es/win32/

Also could you please turn log level to trace and post a log.

Regards,
Mladen.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Seth Ladd
Shapira, Yoav wrote:
Hi,
Why go through all this?  The point of the JNDI Resources part of the
Servlet Specification is to allow portable interaction with external
resources.  Your approach loses all the portability (it's
Tomcat-specific) without gaining much of anything.  You could do the
same stuff in your webapp, instead relying on a portable notification of
app shutdown (ServletCotnextListener) and managing your own object
creation/destruction.
Good question.  Because we have a few services we'd like shared between 
all webapps.  While you are correct that getting the service into JNDI 
is Tomcat specific (which is why I'm pulling for a writable JNDI context 
:), getting the service out from JNDI is standard.

So while we could put all the classes into common/lib and use a 
singleton pattern, I wouldn't have a way to cleanly shut down the 
service on app server shutdown (I could be wrong here).

Seth
--
http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
http://www.foaf-project.org/";>What is FOAF?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Error in tomcat manager

2004-12-13 Thread kangkoong Kakoong

1.I use tomcat 5.0.19, and when 
   I have deploy myapp in context path at   tomcat manager but myapp didn't 
start?,then when I click start at commands the   following message show:
  FAIL - Application at context path   /wrok could not be started 

Why that happened and how to solve it?

2.how to make myapp automatically start   in tomcat manager without clicking   
start   at Commands list? 

Thanks in Advance 



-
Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search. Learn more.

Re: OutOfMemory Errors

2004-12-13 Thread Asim Alp
Hello Peter,

Sorry.  My system config is:

Windows Server 2003
Apache 2.0.49 (Win32) mod_ssl/2.0.51 OpenSSL/0.9.7d DAV/2 mod_jk/1.2.6
Tomcat 5.5.4
sun jdk 1.5.0-b64

We have a 2 node tomcat cluster each running with the -Xms128m
-Xmx1024m options.

We have a heavily loaded JDBC application running and our MySQL server
has enough max_connections to handle our load.  For now, we have
Apache, one of the Tomcats and MySQL running on the same machine (2 x
3.8 Ghz Intel with 2GB of Ram).  We're also using this server as a
file server with RAID 5.

>From Task Managers performance monitor, I'm looking at the Handles (I
hope I'm looking at the correct thing).  Total number of handles is
around 30400 (almost two times 16K).  Apache is usually using about
3000, Tomcat 5000, MySQL 9000, System 2600, svchost 1000.

Do these values look normal?

Asim

On Mon, 13 Dec 2004 17:53:35 -, Peter Crowther
<[EMAIL PROTECTED]> wrote:
> > From: Asim Alp [mailto:[EMAIL PROTECTED]
> > I'm trying to solve an OOME on our Tomcat.
> 
> Tomcat version?
> JVM version and settings?
> Application characteristics?
> Other libraries in use (eg JDBC)?
> 
> > We profiled our
> > application using JProfiler and there are no memory leakages on our
> > end.  Currently, I'm focusing on some system resource problems such as
> > file descriptors.  Would this be a valid problem on Windows Server
> > 2003?  And if so, how can I change the max number of file descriptors?
> 
> I suspect someone else will give a better Java solution, but I'm a
> Windows hack who's a relative latecomer to Java...
> 
> You've got 16k to go at by default.  How many are you using, according
> to Performance Monitor?  And how many in the JVM running Tomcat?
> 
> > One last thing...  What other resources should I investigate for this
> > sort of OOME?
> 
> http://www.sysinternals.com/ for 'handle' and Process Explorer if you
> suspect a resource problem on Windows.
> 
> - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.5.4 Ant Task

2004-12-13 Thread Remy Maucherat
On Mon, 13 Dec 2004 11:34:08 -0600, Gregg <[EMAIL PROTECTED]> wrote:
> I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to
> work great except the Ant Tasks.  Deploy works just fine but when I do
> the undeploy task the folder that contains my webapp does not get
> removed.  So when I go to deploy again, it says it can't because the
> context already exists.  With 5.0.x the context was removed completely.
> Does anyone know if this is a bug or if the behavior of the ant tasks
> have changed?  I couldn't find anything specifically about this in the
> changelog.

There's a FAQ entry on this:
http://jakarta.apache.org/tomcat/faq/windows.html#lock

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Administration Application

2004-12-13 Thread Kelly, Steve
James,

Thanks for that. That's done the trick. Dunno why there was not a valid
admin.xml file as there is on the Windows install.

However, I still have a problem. I'd expect to see a tree a bit like
this when I get into the admin application:
Tomcat Server
Service (Catalina)
Host (localhost)
Context (/)
Context (/admin)
Context (/manager) 
Etc

But I just see as far down as Service(Catalina).

Any clues.

TIA

Steve. 

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2004 15:54
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Bare with me, I usually work with Tomcat 4.5 on Linux. My first stab at
Tomcat 5.5 is on Windows.

Anyway, was looking at the files for the tar.gz release of the admin
tools.

Verify that you do indeed have a conf\Catalina\localhost\admin.xml
(double check file permissions as well) This is what re-maps requests
for /admin to \server\webapps\admin.


To me, it does not appear to have a  proper context path specified?
Is the context mapping assumed?  Based on the name of the file?

If required? Modify conf\Catalina\localhost\admin.xml with a path, like
so;




This should override the generic page in \webapps\ROOT\admin\


-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

James,

I'm on RedHat Linux V9. Everything (tomcat and the admin package) is
installed in the jakarta-tomcat-5.5.4 directory. 

Even if I undeploy the admin application and then deploy it specifying
the $CATALINA_HOME/server/webapps/admin directory I still get the same
same message telling me to download and install the separate admin
application.

There must be something (can anyone tell me what?) pointing /admin to
the web page that displays this message.

Steve.

-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2004 20:13
To: Tomcat Users List; Tomcat Users List
Subject: RE: Tomcat Administration Application

Did you simply extract the .zip file into your Tomcat 5.5.4 install
directory?

The .zip has a file path of jakarta-tomcat-5.5.4\, but the default
installation directory is Tomcat 5.5\

So if you simply extracted the zip into your install directory, look for
a directory named jakarta-tomcat-5.5.4

Drag & Drop those directory contents to the true tomcat installation
directory.

Perhaps the .zip could be re-packaged and remove the path
jakarta-tomcat-5.5.4 from the archive?
This would allow users to simply unzip admin.zip into their installation
directory.

James

-Original Message-
From: Kelly, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 1:47 PM
To: Tomcat Users List
Subject: RE: Tomcat Administration Application

Wade,

Forgive me but I'm a novice at this stuff. How can I modify the link ?
The context name is 'admin' but when I key in
http://localhost:8080/admin I get the same message telling me to
download and install the separate admin application.

Steve.  

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 10 December 2004 17:27
To: Tomcat Users List
Subject: Re: Tomcat Administration Application

Kelly, Steve wrote:
> I've just installed Tomcat 5.5.4. I also downloaded the separate 
> Tomcat Administration application. But when I click the Tomcat 
> Administration button I still get the message saying the web 
> application is no longer installed by default. From the Tomcat manager

> it says that application 'admin' is running. What else do I need to do
to get into it ?
>  
> TIA,
>  
> Steve.
> 

Well, I assume that first page you are talking about is static, so it
has no idea about the management app.  You could probably find and
modify the link, and the other thing is from your manager application
find the context for the admin app and type in
http://yourservername:yourport/contextname

Wade


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Shapira, Yoav

Hi,
Why go through all this?  The point of the JNDI Resources part of the
Servlet Specification is to allow portable interaction with external
resources.  Your approach loses all the portability (it's
Tomcat-specific) without gaining much of anything.  You could do the
same stuff in your webapp, instead relying on a portable notification of
app shutdown (ServletCotnextListener) and managing your own object
creation/destruction.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Seth Ladd [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 13, 2004 1:10 PM
>To: [EMAIL PROTECTED]
>Subject: A Resource ObjectFactory as LifecycleListener ?
>
>Hello,
>
>I've setup a ObjectFactory for Tomcat's JNDI and Resource system.  I'd
>like that that ObjectFactory to respond to the Tomcat Server shutting
>down.  It appears that a new ObjectFactory is created for every request
>for the Object, so ObjectFactory itself is not a singleton.  That's OK
>for now.
>
>The Object that is returned by the ObjectFactory is a singleton (in a
>sense) and I'd like that Object to shutdown cleanly when the Server
>shuts down.
>
>One idea I had was to create a  that would shut down the
>singleton.  The ObjectFactory would continue to serve the singleton via
>JNDI.  The problem there is I might have to duplicate some class files
>because the  will load its classes from server/lib, while the
>ObjectFactory will load its classes from common/lib.
>
>If I could have the  or the ObjectFactory participate as a
>LifecycleListener, I think it would work very smoothly.  I looked
>through the code, and it doesn't appear possible.
>
>Thanks,
>Seth
>
>--
>http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
>http://www.foaf-project.org/";>What is FOAF?
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 / Admin How ?

2004-12-13 Thread birendar . waldiya

Can any one guide me or point me to the documents  where i will get the 
steps to  assimilate the admin with  tomcat ??

Birendar Singh Waldiya


DISCLAIMER: The information contained in this e-mail message and/or attachments 
to it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited and any violation thereof would possibly attract 
penal action.   If you have received this communication in error, please notify 
us by reply e-mail or telephone and immediately and permanently delete the 
message and any attachments. TCS accepts no liability for any damage caused by 
this email or its attachments due to viruses, interference, interception, 
corruption or unauthorized access/use.

Re: Please help me

2004-12-13 Thread Hari Mailvaganam
You can load balance between the two instances.

cheers,

Hari Mailvaganam


On Mon, 13 Dec 2004 16:29:16 +0530, Rajesh <[EMAIL PROTECTED]> wrote:
> i tryed but sometimes it gives error when i restart(restarting webapp)
> it works good
> 
> or is it possible to display a page for any request to the server or a
> perticular webapp that
> 
> "site is under maintanance please visit in few minutes"
> 
> is it possible?
> 
> Rajesh
> 
> 
> 
> VTR Ravi Kumar wrote:
> 
> > I dont think u would have to shut down the server to upload files.
> > The context must be reloadable ie., set the reloadable = true in the
> > context using the
> > admin page
> >
> >
> > VTR
> > BHEL haridwar
> > - Original Message - From: "Rajesh" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 13, 2004 2:25 PM
> > Subject: Please help me
> >
> >
> >> Hai all,
> >>
> >> i have a doubt please help me.
> >>
> >> in my tomcat server, am developing a online shopping site.
> >>
> >> the site is live,
> >>
> >> i periodically upload updated pages, when uploading i donot want to
> >> down the server,
> >>
> >> i use a way that creating 2 webapps, one will run, i upload the
> >> updated pages to webapp 2 afteruploading i go to webapp1 and point it
> >> to webapp2 when i need to upload second time ill upload to webapp 1
> >> and i will make point from webapp2 to webapp 1 .
> >>
> >> is there any way to do this affectively ??
> >>
> >> Please reply
> >> Rajesh
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A Resource ObjectFactory as LifecycleListener ?

2004-12-13 Thread Seth Ladd
Hello,
I've setup a ObjectFactory for Tomcat's JNDI and Resource system.  I'd 
like that that ObjectFactory to respond to the Tomcat Server shutting 
down.  It appears that a new ObjectFactory is created for every request 
for the Object, so ObjectFactory itself is not a singleton.  That's OK 
for now.

The Object that is returned by the ObjectFactory is a singleton (in a 
sense) and I'd like that Object to shutdown cleanly when the Server 
shuts down.

One idea I had was to create a  that would shut down the 
singleton.  The ObjectFactory would continue to serve the singleton via 
JNDI.  The problem there is I might have to duplicate some class files 
because the  will load its classes from server/lib, while the 
ObjectFactory will load its classes from common/lib.

If I could have the  or the ObjectFactory participate as a 
LifecycleListener, I think it would work very smoothly.  I looked 
through the code, and it doesn't appear possible.

Thanks,
Seth
--
http://www.picklematrix.net/foaf.rdf";>Seth Ladd's FOAF
http://www.foaf-project.org/";>What is FOAF?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: OutOfMemory Errors

2004-12-13 Thread Dale, Matt
Perhaps you just arent allocating enough memory for your application and there 
is no leak.

As always i recommend getting a hold of jvmstat from sun and it'll give you 
some visual clues as to what is going on.

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED]
Sent: 13 December 2004 17:47
To: Tomcat Users List
Subject: OutOfMemory Errors


I'm trying to solve an OOME on our Tomcat.  We profiled our
application using JProfiler and there are no memory leakages on our
end.  Currently, I'm focusing on some system resource problems such as
file descriptors.  Would this be a valid problem on Windows Server
2003?  And if so, how can I change the max number of file descriptors?

One last thing...  What other resources should I investigate for this
sort of OOME?

Thanks,

Asim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: JK 1.2.7 Problem?

2004-12-13 Thread Mladen Turk
Allistair Crossley wrote:
Hi,
I'm afraid I cannot tell you too much about this. I have no idea why or how I 
am generating these errors. I'm just stepping around my test web site and and 
every now and again this error is dumped into stdout. I think it may be the JK 
1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat 5.5.5. No error 
is propogated to the user, it seems to be silent.
Hi can you test the newst beta-3.
It might be that you have a socket_timeout property set in your config
that was using milliseconds instead seconds.
The binaries are at:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/
Also could you please turn log level to trace and post a log.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ssi including cgi with query args is broken

2004-12-13 Thread Brian Hill
Using an SSI directive to include a cgi script works under Apache but
fails under Tomcat because the query arguments are not being handled the
same way.  Under Tomcat 5.5.4, the query args are being searched for as
if they were part of the filename. [I made a previous post on this
subject but was then reporting the behavior under Tomcat 4.0.24, which
also fails, but somewhat differently.]
More details are below.  I would be happy to test a patch class (I'd
need directions for where to put the patch class and how to configure
the class loader to find it).  --Brian
In this log/backtrace, you can see that the CGI jar is trying to find
the file:
navTool.pl?REF+GENERAL+WHATIS
This file doesn't exist.  On our systems, navTool.pl exists and is in
WEB-INF/cgi/, and is expecting some query args.  [Note: by the default
configuration, /cgi-bin/ is "rewritten" as WEB-INF/cgi/ when the cgi jar
actually searches for the script, so both paths appear in the
log/backtrace below.]
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI: path=/Docs/ref_general1.html,
/Library/Tomcat/webapps/PCW/WEB-INF/cgi
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI: currentLoc=/Library/Tomcat/webapps/PCW/WEB-INF/cgi
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI: currentLoc=/Library/Tomcat/webapps/PCW/WEB-INF/cgi
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: findCGI:
currentLoc=/Library/Tomcat/webapps/PCW/WEB-INF/cgi/Docs
Dec 9, 2004 3:46:04 PM org.apache.catalina.core.ApplicationContext log
SEVERE: ssi: #include--Couldn't include file:
/cgi-bin/navTool.pl?REF+GENERAL+WHATIS
java.io.IOException: Couldn't find file:
/cgi-bin/navTool.pl?REF+GENERAL+WHATIS
  at
org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExternalResolver.java:391) 

  at
org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:154)
  at  org.apache.catalina.ssi.SSIInclude.process(SSIInclude.java:40)
  at
org.apache.catalina.ssi.SSIProcessor.process(SSIProcessor.java:145)
  at
org.apache.catalina.ssi.SSIServlet.processSSI(SSIServlet.java:193)
  at
org.apache.catalina.ssi.SSIServlet.requestHandler(SSIServlet.java:170)
  at org.apache.catalina.ssi.SSIServlet.doGet(SSIServlet.java:106)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) 

  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) 

  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 

  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 

  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 

  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 

  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 

  at
org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:150) 

  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
  at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)
  at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
  at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) 

  at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 

  at java.lang.Thread.run(Thread.java:552)
To reproduce this problem, all you need is a web app with a .shtml file
containing the line

and a perl script WEB-INF/cgi/echoargs.pl containing the lines:
#!/usr/bin/perl -w
my $query_args = $ENV{QUERY_STRING};
if (defined($query_args)) {
  print "query string is\n";
  print "$query_args\n";
} else {
  print "query string is undefined\n";
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JK 1.2.7 Problem?

2004-12-13 Thread Allistair Crossley
Hi,

I'm afraid I cannot tell you too much about this. I have no idea why or how I 
am generating these errors. I'm just stepping around my test web site and and 
every now and again this error is dumped into stdout. I think it may be the JK 
1.2.7 beta 2. It's running as an IIS 5 ISAPI filter to Tomcat 5.5.5. No error 
is propogated to the user, it seems to be silent.

SEVERE: Error decoding request 
java.lang.NumberFormatException
 at org.apache.tomcat.util.buf.Ascii.parseInt(Ascii.java:145)
 at org.apache.tomcat.util.buf.ByteChunk.getInt(ByteChunk.java:491)
 at org.apache.tomcat.util.buf.MessageBytes.getInt(MessageBytes.java:645)
 at org.apache.jk.common.HandlerRequest.decodeHeaders(HandlerRequest.java:682)
 at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:504)
 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
 at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
 at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)
Dec 13, 2004 5:21:15 PM org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

Cheers, Allistair.


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OutOfMemory Errors

2004-12-13 Thread Peter Crowther
> From: Asim Alp [mailto:[EMAIL PROTECTED] 
> I'm trying to solve an OOME on our Tomcat.

Tomcat version?
JVM version and settings?
Application characteristics?
Other libraries in use (eg JDBC)?

> We profiled our
> application using JProfiler and there are no memory leakages on our
> end.  Currently, I'm focusing on some system resource problems such as
> file descriptors.  Would this be a valid problem on Windows Server
> 2003?  And if so, how can I change the max number of file descriptors?

I suspect someone else will give a better Java solution, but I'm a
Windows hack who's a relative latecomer to Java...

You've got 16k to go at by default.  How many are you using, according
to Performance Monitor?  And how many in the JVM running Tomcat?

> One last thing...  What other resources should I investigate for this
> sort of OOME?

http://www.sysinternals.com/ for 'handle' and Process Explorer if you
suspect a resource problem on Windows.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OutOfMemory Errors

2004-12-13 Thread Asim Alp
I'm trying to solve an OOME on our Tomcat.  We profiled our
application using JProfiler and there are no memory leakages on our
end.  Currently, I'm focusing on some system resource problems such as
file descriptors.  Would this be a valid problem on Windows Server
2003?  And if so, how can I change the max number of file descriptors?

One last thing...  What other resources should I investigate for this
sort of OOME?

Thanks,

Asim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.4 Ant Task

2004-12-13 Thread Gregg
I recently migrated from Tomcat 5.0.x to 5.5.4.  Everything seems to 
work great except the Ant Tasks.  Deploy works just fine but when I do 
the undeploy task the folder that contains my webapp does not get 
removed.  So when I go to deploy again, it says it can't because the 
context already exists.  With 5.0.x the context was removed completely.  
Does anyone know if this is a bug or if the behavior of the ant tasks 
have changed?  I couldn't find anything specifically about this in the 
changelog.

Thanks.
Gregg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Struts application

2004-12-13 Thread Freddy Villalba A.
Thanx Yoav,

Just a few things. Hope u can provide some further info (if not, it's ok...
you've already given me some answers, which I appreciate):

- I've tested doing what you said... actually, I'd tried that before even
contacting all of you, but since it didn't worked, I thought I might have
missed "something else" explained on the file I mentioned, running.TXT).
I'll give it a second try.

- I have a constraint: I must use Java v1.4 (therefore my testing v5.5 with
v1.4).

- Before trying out Tomcat 5.x, I believe it's more "prudent" to first make
sure that the web app works on a "similar" (note the quotes) environment.
Therefore my wanting to try out Tomcat v4.1 standalone server.

- I've already installed Tomcat 5.5 as a service. Will it conflict with v5.0
if I try to install the latter without uninstalling v5.5? (I've noticed that
the name of the service automatically created by the installer is "tomcat5"
(not "tomcat5_5", "tomcat5_x" or similar).

- You say that LE version does not contain files files provided by JDK 1.4.
I'd already installed Sun's JDK 1.4 on my box. Are there any differences
between installing LE and integrating it with that JDK or using the "full"
version? Any "small print"? :)

Just that. Again, thanx 4 everything.

Regards everybody,
Freddy.


-Mensaje original-
De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 13 de diciembre de 2004 17:55
Para: Tomcat Users List; [EMAIL PROTECTED]
Asunto: RE: Struts application



Hi,

>succesfully served. Something important: I used J2SE 5.0, since it's a
>REQUISITE for running v5.5 (and I haven't been able to find the famous
>"RUNNING.txt" file - or any other document, for what it matters - where
>those details for using v5.5 along with Java v1.4 are professedly
>explained).

It's in any of the full distributions: jakarta-tomcat-5.5.x.zip or
jakarta-tomcat-5.5.x.tar.gz.  All you need to do in order to run Tomcat
5.5 under JDK 1.4 is extract jakarta-tomcat-5.5.x-compat.zip to the
directory where you installed Tomcat.  All the compat distro contains is
the JMX API and the Xerces implementation.

>deployment. However, I thought it would also be a good debugging
practice
>to
>install a standalone Tomcat v4.1 server and make sure that, at least,
the

That IS good debugging practice.  An even better one would be to try a
more recent version such as Tomcat 5.0.x, rather than 4.1.x which is two
major versions back from 5.5.x.

>JBuilderX. Hence, another question: what's the difference between:
>
>jakarta-tomcat-4.1.31-LE-jdk14.exe
>
>and
>
>jakarta-tomcat-4.1.31.exe

The LE distribution does NOT contain files provided by JDK 1.4.  Don't
use it: use the full distributions.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: war not deploying

2004-12-13 Thread Cumbers
Hey
Yeah that gets created, and in there is the war file.
I am unsure how much info to give out, as this could be a cactus 
problem, I am still hacking at it and trawling google searches!

Cheers
Rich
Phillip Qin wrote:
Have you created /tmp/cactus/tomcat5x/webapps/?
-Original Message-
From: Cumbers [mailto:[EMAIL PROTECTED] 
Sent: December 13, 2004 10:38 AM
To: Tomcat Users List
Subject: war not deploying

Hey guys
I am trying to use ant with cactus to deploy my app to Tomcat and then 
test. I can run the ant tasks on the examples, i tested the servlet 
example that comes with the cactus download and it creates its own 
Tomcat instance, puts the cactified war file under the webapps dir and, 
most importantly, it unpacks the war file. cactus then runs the tests.

Currently with my app a temporary instance of Tomcat is created, the 
cactified war file is placed under webapps, but the dam thing is not 
unpacking the war file, and giving me errors like:

java.lang.IllegalArgumentException: Document base 
/tmp/cactus/tomcat5x/webapps/rms-dev does not exist or is not a readable 
directory

Now I know this is not available because the war file is not unpacked. 
Is there a school boy error I am making? Can anyone help?!

Now I know this could be a cactus problem, but it could be a tomcat 
config problem. Please don't flame me!

Cheers
Rich
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41bdb698141152608797899!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: What does this mean? (Tomcat manager)

2004-12-13 Thread Shapira, Yoav

Hi,
The display of those values has no significance to Tomcat itself, so
it's fine.  It has meaning to the server administrators who might see
these values as an indication something else is wrong, and check their
logs, e.g. the database log ;)

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 13, 2004 10:50 AM
>To: Tomcat Users List
>Subject: What does this mean? (Tomcat manager)
>
>In using the Tomcat manager app with 5.0.16, we got some odd results
when
>our
>backend database started acting funny and then crashed; I'm just
curious as
>to
>whether the results we saw on the Tomcat manager indicate that there's
>something
>I should be looking at.
>
>Specifically, what I saw was that the "Current thread count" and
"Current
>thread
>busy" on our http connector both specified NEGATIVE values soon after
the
>database started having trouble, and on our https connector, the value
>listed
>for both items was "0". There were no errors in the catalina.out that
>appeared
>to be related to this - naturally, our database log had plenty of
errors.
>But
>what I want to assure myself is that Tomcat was operating as intended -
or
>does
>the display of either of those values have a particular significance to
>Tomcat?
>
>Thanks!
>
>--
>Lynn Hollerman.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



webapp's log4j config acting wonky

2004-12-13 Thread Mike Curwen
Hi all,

I've been using log4j for some time and like it quite a bit.  My configs are
probably naieve, but they work for me.  But now, another developer has
pointed something out to me, and yup.. something's busted. I'm posting this
to tomcat-user because I'm thinking it might be a TC/mywebapp conflict of
some kind (though I'm not sure where).
 
Tomcat 5.0.29
log4j 1.2.1 in my webapp's WEB-INF/lib
log4j.properties in my webapp's WEB-INF/classes directory.

I don't have log4j.jar anywhere else and no other log4j.properties files
anywhere, though perhaps I don't know where to look.


In our JSP pages we have loggers declared like so:

<%@ page import="org.apache.log4j.Logger" %>
<%! 
Logger logger = Logger.getLogger("pages.abc.page_name");
%>
<%
logger.debug("foo");
%>


"pages" is common throughout every JSP.  "abc" would be a folder name (we've
got the webapp organized into folders of related functions), and finally
"page_name" is the name of the JSP file without extension.



our log4j.properties file is:

#log4j.properties

log4j.rootCategory=DEBUG, filer

log4j.category.com.gb.security=WARN, filer
log4j.additivity.com.gb.security=false

log4j.appender.filer=org.apache.log4j.RollingFileAppender
log4j.appender.filer.layout=org.apache.log4j.PatternLayout
log4j.appender.filer.layout.ConversionPattern=%-5p %c - [%m] %d{ISO8601}%n
log4j.appender.filer.File=/path/to/the/log/file/debug.log
log4j.appender.filer.MaxFileSize=100KB
log4j.appender.filer.MaxBackupIndex=4



As you'll see we've got the root category to DEBUG and we've piped down our
com.gb.security package to WARN.  We've got lots of other classes, both
bundled in WEB-INF/lib jar files and loosely in the WEB-INF/classes  and
they all spill their log4j output. 

But none of our log messages from the JSP pages are coming through.  I've
tried the following config, but it had no effect:

log4j.category.pages=DEBUG, filer
log4j.additivity.pages=false


*If* I configure the following (adding a 'package' below 'pages'):

log4j.category.pages.abc=DEBUG, filer
log4j.additivity.pages.abc=false

Then it will work (but obviously only for pages under 'abc').  Also, if I
remove the additivity, I get two messages. That makes me think there's one
message from the rootCategory, and one from this category.  But when I
remove the category 'pages.abc' entirely, we're back to nothing again.


Any ideas?  Is there a TC log4j or CL file hiding somewhere?



mike curwen
intermediate programmer
globally boundless

204 885-7733  ext 227
www.globallyboundless.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two Tomcat installations on one server in Windows 2K3

2004-12-13 Thread footh
Thanks, I already read that but didn't quite
understand how I could use that information for my
setup.

First off, I want to run Tomcat as a service and that
seems to talk about running multiple instances with
the startup script.

Second, item number 4 more or less says for multiple
instances "you can use CATALINA_BASE" as an argument
but doesn't really explain CATALINA_BASE.  Is it the
install directory of Tomcat?  Or is it a directory
where I have another set up "webapps" and context
configuration files.  I can't quite visualize what it
means to use CATALINA_BASE and how to set up the
directories.


--- Tino Schöllhorn <[EMAIL PROTECTED]>
wrote:

> Hi,
> 
> as far as I know you can't run the installer twice.
> To run several 
> identical instances of tomcat you can use the
> information of the 
> follwoing url:
> 
>
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt
> 
> It helped me a lot.
> 
> Tino
> 
> 
> footh wrote:
> > I have a server with several IP addresses and I'd
> like
> > to have two separate instances of Tomcat listening
> on
> > two of the IP addresses.  I want both of these
> > instances to be a  separate service as well.
> > 
> > I already had one Tomcat installation on the
> server
> > and I attempted to run the installer again under a
> > different directory.  Then I modified the
> service.bat
> > file to give the service a different name and I
> tried
> > to install this new instance.  However, I received
> an
> > error.
> > 
> > Additionally, it seems both installations point to
> the
> > same registry configuration entries which has
> > directory-specific values (pointing the the
> directory
> > of the last installion of Tomcat I performed).
> > 
> > So, I'm thinking I'm not doing this the right way.
>  I
> > read the RUNNING.txt file and searched the mailing
> > list but I can't seem to find information specific
> to
> > what I need to do.  Could someone possibly offer a
> > suggestion for setting this up?
> > 
> > Regards,
> > JF
> > 
> > 
> > 
> > 
> > __ 
> > Do you Yahoo!? 
> > Yahoo! Mail - 250MB free storage. Do more. Manage
> less. 
> > http://info.mail.yahoo.com/mail_250
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts application

2004-12-13 Thread Shapira, Yoav

Hi,

>succesfully served. Something important: I used J2SE 5.0, since it's a
>REQUISITE for running v5.5 (and I haven't been able to find the famous
>"RUNNING.txt" file - or any other document, for what it matters - where
>those details for using v5.5 along with Java v1.4 are professedly
>explained).

It's in any of the full distributions: jakarta-tomcat-5.5.x.zip or
jakarta-tomcat-5.5.x.tar.gz.  All you need to do in order to run Tomcat
5.5 under JDK 1.4 is extract jakarta-tomcat-5.5.x-compat.zip to the
directory where you installed Tomcat.  All the compat distro contains is
the JMX API and the Xerces implementation.

>deployment. However, I thought it would also be a good debugging
practice
>to
>install a standalone Tomcat v4.1 server and make sure that, at least,
the

That IS good debugging practice.  An even better one would be to try a
more recent version such as Tomcat 5.0.x, rather than 4.1.x which is two
major versions back from 5.5.x.

>JBuilderX. Hence, another question: what's the difference between:
>
>jakarta-tomcat-4.1.31-LE-jdk14.exe
>
>and
>
>jakarta-tomcat-4.1.31.exe

The LE distribution does NOT contain files provided by JDK 1.4.  Don't
use it: use the full distributions.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts application

2004-12-13 Thread Freddy Villalba A.
Hello everyone,

I'm facing some problems with Struts on a Tomcat server. I'm looking for my
own answers. However, input from both groups would be appreciated.

I just downloaded Tomcat v5.5 and installed on an XP Professional box. No
problem.

I've been running and testing without trouble a Struts applications on a
Tomcat 4.0 server as well as a Tomcat 4.1 server, both of them shipped and
integrated with JBuilderX IDE (Java 1.4). In the past, I've deployed several
other web applications on standalone servers (Tomcats, Weblogics, JBoss...)
after developing and testing them on these "embedded" servers and never
faced any (important) problems.

Now, I tried to deploy that very same web application on the Tomcat 5.5
server. It just wouldn't work. There seems to be some kind of problem with
Struts' Tag Libraries. "Normal" JSPs and other non-Struts files are
succesfully served. Something important: I used J2SE 5.0, since it's a
REQUISITE for running v5.5 (and I haven't been able to find the famous
"RUNNING.txt" file - or any other document, for what it matters - where
those details for using v5.5 along with Java v1.4 are professedly
explained).

Any comments anybody? (If somebody believes the stack trace would be of some
help in this case I wouldn't mind provinding it... I just didn't want to
flood you with unnecesary (?) data)

At this moment, I'm trying to find out what's going on with the tomcat v5.5
deployment. However, I thought it would also be a good debugging practice to
install a standalone Tomcat v4.1 server and make sure that, at least, the
web application works just as fine as it did with that one shipped with
JBuilderX. Hence, another question: what's the difference between:

jakarta-tomcat-4.1.31-LE-jdk14.exe

and

jakarta-tomcat-4.1.31.exe

???

Thanks in advance.

Regards,
Freddy.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >