RE: Help with running Tomcat

2004-06-05 Thread Oswald Campesato
Another simple solution is to redirect stdout and stderr to text file like this:

startup.bat 1std1 2std2
 
where std1 and std2 are quasi-arbitrarily chosen file names.  This
approach is convenient when you do not want to modify the contents 
of startup.bat.  However, you will need to either open another shell
or navigate to those files in Explorer
 
Regards,
 
Oswald
 

Ariel Valentin [EMAIL PROTECTED] wrote:
Edit the startup.bat file and enter the word pause at the end.
This will stop the window from closing and you can see what the error is.
Also have you tried looking at the server logs? I am not sure if it writes 
anything but it is worth looking at.

Mr. Ariel S. Valentin
mailto: [EMAIL PROTECTED]




From: sowmya 
Reply-To: Tomcat Users List 
To: [EMAIL PROTECTED]
Subject: Help with running Tomcat Date: Sat, 5 Jun 2004 12:17:35 -0700 
(PDT)

hi,

I'm working on the tomcat server
and i have it installed on my laptop running Windows
XP. It was working
fine , but suddenly since a couple of days, whenever I
try to startup
using the bat file, the command prompt window just
disappears - and the
server does not start. There is no change that I have
made, either to the
classpath or the path of the directory structure.

It seems rather mysterious to me. I reinstalled the
whole thing - but the
problem still remains. Any help would be greatly
appreciated.

Thanks in advance,
Sowmya.




__
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

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


_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/


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


-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

RE: How to deploy a web application under Tomcat 5

2004-03-24 Thread Oswald Campesato
Hello, Elisabeth:
You can do something like this:
 
cd parent-of-WEB-INF-directory
jar cvf myFirstManualWarFile.war .
 
Incidentally, out of curiosity I searched Google with 
manually creating WAR files and the first entry is
a nice Sun Web page that will help you get up to
speed with some of this stuff. 
 
Regards,
 
Oswald
 


Bachler, Elisabeth (Elisabeth) [EMAIL PROTECTED] wrote:
I don't quite understand what you are saying. My problem is that I don't
know how to create a WAR file with the basic structure in it. I have to do
it manually but I don't know how.
COuld you tell me where to find the information?.
Once I have this WAR file, I suppose I only have to put it under webapps and
restart TOmcat, right?
THanks for your patience.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: miercoles, 24 de marzo de 2004 21:15
To: Tomcat Users List
Subject: RE: How to deploy a web application under Tomcat 5



Hi,

THanks for your response, the problem is that I don't have a clue about
how
to create a WAR application.

A WAR file is a type of jar file (which in turn is a type of zip file).
You can create a WAR file using java's jar command or Ant's war task.

files. I only need Tomcat to recognize the structure
MyApp
 |
 --- WEB-INF
 |
 classes
 lib
  web.xml

Tomcat will recognize this structure: create a directory called MyApp in
your webapps directory, and create the above directories/files under it.
Restart tomcat, and you'll be able to access
http://localhost:8080/MyApp. There won't be anything there, of course.
Create a simple test.html page and try
http://localhost:8080/MyApp/test.html.

DO you happen to know where to find this information. I could not find
it
anywhere.

What information? How to create directories? How to create WAR files?
How to write web applications? The things I've described above are
trivial, easily accessible via Google for example. The specifics of the
WAR file format are in the Servlet Specification (http://java.sun.com).

Yoav Shapira



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]

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Re: What is the problem with tomcat 5.0

2004-03-03 Thread Oswald Campesato
Hello, Joao:
 
jmx.jar contains javax/management/ListenerNotFoundException.class
and (for me) jmx.jar is in $TOMCAT_HOME/common/lib; perhaps it's
not installed on your system.
 
Here's a very simple yet useful Bourne shell script:


for jar in `ls *jar`
do
   echo checking $jar...
   jar tvf $jar |grep -i listenernotfoundexception
done

 
btw: you can install either Cygwin on a Windows PC or 
uwin (if you prefer ksh)... 
 
Cordially,
 
Oswald


Joao Araujo [EMAIL PROTECTED] wrote:
Shapira,

Hi,
What jars that didn't ship with tomcat are in your runtime classpath?

 

I;ve nothing set on my classpath. I saw that tomcat override 
whatever you set . The script
setclasspath.sh does the job. It does this.

CLASSPATH=$JAVA_HOME/lib/tools.jar

Those are my settiings
Using CATALINA_BASE: /export/tomcat
Using CATALINA_HOME: /export/tomcat
Using CATALINA_TMPDIR: /export/tomcat/temp
Using JAVA_HOME: /usr/java/j2sdk

Thanks in advance,
joao,

Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Joao Araujo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 1:40 PM
To: [EMAIL PROTECTED]
Subject: What is the problem with tomcat 5.0


 I''ve been trying to start tomcat without success.
 I dont know why every time I run startup.sh I get the following
 

error:
 

java.lang.NoClassDefFoundError:
 

javax/management/ListenerNotFoundException
 

 at
javax.management.MBeanServerDelegate.(MBeanServerDelegate.java:65
 

)
 

 at
com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.(MBeanServerDeleg
 

ateI
 

mpl.java:93)
 at
com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(JmxMBeanS
 

erve
 

r.java:1356)
 at
javax.management.MBeanServerBuilder.newMBeanServerDelegate(MBeanServerB
 

uild
 

er.java:61)
 at
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.j
 

ava:
 

316)
 at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactor
 

y.ja
 

va:227)
 at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactor
 

y.ja
 

va:188)
 at
org.apache.commons.modeler.Registry.getMBeanServer(Registry.java:665)
 at
org.apache.catalina.mbeans.MBeanUtils.createServer(MBeanUtils.java:1700
 

)
 

 at
 

org.apache.catalina.mbeans.MBeanUtils.(MBeanUtils.java:160)
 

 at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.(Gl
 

obal
 

ResourcesLifecycleListener.java:112)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor
 

Acce
 

ssorImpl.java:39)


 Any idea of what is happening?
JOao,


-
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]


 




-
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.

Re: starting tomcat with custom propertys

2004-02-27 Thread Oswald Campesato
Hello, Ukiah:
 
To see what's failing in the script you can try this:
 
set -x
catalina.sh

You can then type set +x to switch off the display of executed
commands or just open another command shell
 
Oswald
 

Ukiah Smith [EMAIL PROTECTED] wrote:
I just used JAVA_OPTS = -Djava.awt.headless=true as the first non commented
line in catalina.sh. I also tried it in my init.d/tomcat41 directory.
When it was in my catalina.sh file I got and error, JAVA_OPTS: command
not found.

What am I doing wrong? Where do I set JAVA_OPTS or CATALINA_OPTS?

//Ukiah



On Fri, Feb 27, 2004 at 05:42:38PM -0500, Asim Alp wrote:
 I think you have to set the JAVA_OPTS environmental variable.
 
 Asim
 
 On Feb 27, 2004, at 5:48 PM, Ukiah Smith wrote:
 
 I am using an application that requires me to run it with a custom
 property (-Djava.awt.headless=true). I poked around in my tomcat 4.1.29
 installation and found that in the catalina.sh file there was an
 CATALINA_OPTS variable. I tried to set it at a few different places in
 the catalina.sh file. The all resulted in catalina.sh: CATALINA_OPTS:
 command not found.
 
 So my question is how can I get tomcat to run with the property
 -Djava.awt.headless=true?
 
 
 Thanks //Ukiah Smith
 
 
 
 
 -
 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]
 

-- 
http://www.societyofno.com

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


-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

Re: Hanging tomcat processes on heavy access

2004-02-26 Thread Oswald Campesato
Hello, Chris:
 
I have a couple of suggestions (but no answers).  
 
1) you can attach to a process with the 'truss' command and 
monitor the read/write activity of the process.  Syntax, options, 
and examples of truss can be had via man truss or Google 
Unix truss command.  This *might* reveal something.
 
2) you can kill hanging processes and release the port via
a Unix command (the name escapes me right now), which
may help reduce the number of time you need to reboot
 
3) try experimenting with the min/max heap size for Java;
perhaps you can set both of them to small values in a test
environment to quickly reproduce the problem and use #1
 
Since other people can continue working normally, it does
not appear that you've read the maximum number of socket
connections (338, if I remember correctly).  Did this problem
start after having installed new software or changing the
environment?  Perhaps you can try rolling back to see if
the problem disappears
 
Cordially,
 
Oswald
 


Christoph Fischer [EMAIL PROTECTED] wrote:

Hello everyone,

here is my configuration:
linux server with tomcat 4.1.29 connected to apache 1.3.29 via nod_jk
java version 1.4.2_03

from tomcat server.xml

port=8009 minProcessors=5 maxProcessors=500
acceptCount=10 debug=0/

At heavy access times the user gets a blank screen on the browser
and on the server a java process is hanging. Tomcat is still working
and responding to further tasks, but the 'hanging' processes will
stay around until reboot. Unfortunately the hanging processes will
also keep a socket connection on port 8009 to apache, so after some
time the system hangs due to too much connections.

I could rebuild this situation also with jmeter and a simple servlet
which only responds a simple html site, so the problem couldn't come
from my coding.

How can I solve this problem ? Is it coming from tomcat, apache 
or mod_jk???

Thanks very much for any hints
Chris



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


-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

Re: can't get tomcat 5 to work

2004-02-26 Thread Oswald Campesato
Hello, Joseph:
 
Perhaps you can try starting with startup.bat debug and/or copying
some JSPs into webapps\ROOT or webapps\jsp-examples to see if
the problem occurs.
 
Oswald


Joseph Shraibman [EMAIL PROTECTED] wrote:
I set up tomcat 5 but when I try to view a jsp or servlet all I get is a 
blank page and these unhelpful messages in catalina.out:

Feb 27, 2004 12:01:26 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:27 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:28 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
Feb 27, 2004 12:01:29 AM org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request


The tomcat examples work, but my own webapps do not. Any ideas?

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


-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail

RE: Apache/Tomcat/Struts Certification Proposal

2004-02-20 Thread Oswald Campesato
Hello, Drew:
Perception is reality but reality isn't necessarily perception has proven 
itselt many, many times.  People often need credentials in order to _get_ 
the job but not to actually perform the tasks, especially with the current 
supply/demand imbalance.   Non-technical hiring managers can't possibly
determine who has the best technical skills, so they try to decide if the
person sitting on the other side of the table 1) can do the job, 2) will do 
the job, and 3) will also get along with others (to state the obvious).
 
I've read e-mail in one certification-related group on yahoo about freely
available downloads of entire certification tests, and comments from
the sender about having friends who know nothing about technology xyz
and yet were able to pass the exams; this also puts the non-technical
hiring managers in a precarious position.  There is clearly no substitute
for experience, yet I've seen people with 20 years experience in a
field where they've been doing the same thing for the last 17/18 years.
 
Credentials (IMHO) tend to demonstrate that you have follow-through,
similar to completing college, though dropping out does not constitute
failure or lack of intelligence (think of Bill Gates:)).   I know someone
who got a job (several years ago, mind you) at HP because she had
won a high-school level prize for her knowledge of Japanese, which
distinguished her from the other job candidates.  That knowledge
had absolutely nothing to do with the programming job, yet it was a
perception-based factor that weighed in her favor.
 
Ah well, such is life
 
Oswald
 
 
 
 


Hamilton Andrew [EMAIL PROTECTED] wrote:
I tend to agree with the certifications are BS argument. I have several
certifications and they don't really help me do my job. Unfortunately, in
the climate we are in these days, the fact that there are certifications
lead us down the road to being forced into acquiring them. When faced with
the likelihood that the hiring authority in a company may not be an
engineer, but a human resource manager and the requirements for the position
are certification in this, that or the other technology, even though I may
have 5 more years worth of experience, my resume my get tossed aside because
I don't have the piece of paper that tells them that someone else thinks I
know what I'm doing, which may sound ridiculous but is still true. It is
disheartening to see because I switch jobs every three years and more and
more I see that someone wants you to be an SCJP, SCJD, CCIE, CCNA, MCSE,
MCSD, or what have you (does this remind anyone of alphabet soup). I think
there are ways for you to showcase your skills in your resume without having
to resort to getting certifications but it just seems to me that sooner or
later there is going to be some form of certification REQUIRED for a lot of
positions. Just my .02

Regards,

Drew

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 1:24 PM
To: Tomcat Users List
Subject: RE: Apache/Tomcat/Struts Certification Proposal



Howdy,

What if you had two experienced engineers, but only one of them had a
ASF
certification??
Which one would you hire?

I don't know, but the certification would not likely be the deciding
factor. It would come down to the relevance of the experience,
familiarity with the industry, etc, there's a long list of factors that
would come before the presence/absence of an ASF certification.

But of course, that's just me ;)

Yoav Shapira



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]


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Oswald Campesato
On Unix you can also use the truss command to attach
to a running process (check Google for examples).  I used
this technique on a web application and discovered that a
file with *static* content was being opened 1,000 times
per hour by the application.  Before I showed up at the
company, everybody was working on NT and basically
hated Unix, so the problem went undiscovered for close
to four years.  AFAIK, most (all?) of the Java-based tools 
would not detect this sort of problem.
 
I don't think truss is available on NT, even with the MKS 
(or equivalent) package.  For people who are on NT and 
are experiencing problems with their Java-based web-
application, I would strongly recommend setting up a Unix
environment to perform truss-based testing (even if you
need to hire a contractor to set up everything). It's really
quite amazing what truss can uncover:)
 
Cordially,
 
Oswald
 


Edson Alves Pereira [EMAIL PROTECTED] wrote:
JProfiler is the best for this job, there are examples to show you
how bind JProfiler to tomcat ( www.jprofiler.com ), its pretty easy to
handle this tool.

 --
 De: Allistair Crossley[SMTP:[EMAIL PROTECTED]
 Responder: Tomcat Users List
 Enviada: quinta-feira, 8 de janeiro de 2004 8:58
 Para: Tomcat Users List
 Assunto: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 Yes I would like to profile my applicationbut do you have any tips on
 how to do this or where to start?
 
 Thanks
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: 08 January 2004 12:49
 To: 'Tomcat Users List'
 Subject: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 
 In my opnion, is better instead of increasing memory of tomcat JVM
 try to profile your application. I´m sure if tomcat complain about memory,
 your servlets have something wrong.
 
  --
  De: Francois
 JEANMOUGIN[SMTP:[EMAIL PROTECTED]
  Responder: Tomcat Users List
  Enviada: quinta-feira, 8 de janeiro de 2004 7:31
  Para: Tomcat Users List
  Assunto: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
  overnight
  
  
  
   -Original Message-
   The other day Tomcat threw an OutOfMemoryException. This is our
   development version of Tomcat. Looking at the Windows processes
 revealed
   Tomcat at 158MB.
  
  Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx
  parameter. So, the memory allocated to your applications is 64MB
  (default). 158 is a good value reflecting the size of the VM plus the
 size
  allocated to your applications.
  
  If your application needs more memory, try to path -Xmx=128m -Xms=128m
 to
  your startup scripts.
  
  Hope this helps,
  
  François (Oraculum).
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 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]
 


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes