Difference between running bootstrap.jar and catalina.bat

2009-05-14 Thread Jan Horký
Hi,

I have problem with running my app. When I run Tomcat 5.5 | 6.0 by java -jar
bootstrap.jar start It works fine, but when I try run it by catalina.bat or
install as servise I got some class found problems.

Shortly... Some features of application is based on jaxb1 and I need there
web servise which is based on jwsdp2 (jaxb2). I put some jars to app/lib,
some to tomcat/lib and some to java/lib and it works with java -jar
bootstrap.jar start, but not as service.

Can anyone give me some advice?

Realy thanks, hopeless Jan.


How to get thread dump on Tomcat 6 (windows)

2009-05-14 Thread madhu sudhan bandari
Hi All,

I am running my applications on Tomcat 6.0 at windows 2000 server.

I have tried to use ctrl+break to get thread dump on the command prompt
where the process is running
but didn't get the expected output.

can somebody help me on this. Let me know if you need more information on
the same.

regards
Madhu


Re: Difference between running bootstrap.jar and catalina.bat

2009-05-14 Thread André Warnier

Jan Horký wrote:

Hi,

I have problem with running my app. When I run Tomcat 5.5 | 6.0 by java -jar
bootstrap.jar start It works fine, but when I try run it by catalina.bat or
install as servise I got some class found problems.

Shortly... Some features of application is based on jaxb1 and I need there
web servise which is based on jwsdp2 (jaxb2). I put some jars to app/lib,
some to tomcat/lib and some to java/lib and it works with java -jar
bootstrap.jar start, but not as service.


Hi.

When you run Tomcat as a service under Windows, you are really running 
the program TOMCAT_DIR/bin/tomcat5.exe.  This is a wrapper program 
which includes what is needed to run as a Windows Service (catch 
start/stop service events etc..).  This wrapper program, in turn, runs 
the java jvm, and this java jvm runs Tomcat.


When you start Tomcat via the startup.bat script, you are not using 
this wrapper program.  You run the java jvm directly, and it runs Tomcat.


Ok so far ?

When you run Tomcat from the startup.bat script, there are a number of 
environment values which are set by the startup script, before 
starting the java jvm.  Example : JAVA_OPTS, CATALINA_HOME, etc..


When you run the Service wrapper TOMCAT_DIR/bin/tomcat5.exe, these 
parameters are not set via environment values. Instead they are in the 
Windows Registry.
To modify these parameters, there exists another program, named 
TOMCAT_DIR/bin/tomcat5w.exe, which is a Windows GUI program that you 
can run, and which allows you to set the startup parameters.


Try it, and see if that already answers some of your questions.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General errors in virtual host setup

2009-05-14 Thread André Warnier

Dave,

from the whole collection of recent messages, it very much looks to me 
as if you are effectively trying to run 2 Tomcats on this machine, and 
that they somehow conflict in terms of ports, maybe in terms of which 
applications they run, etc..
A while ago, you mentioned another server, for flash stuff.  Are you 
sure that this program is itsef not based on Tomcat for example ?
It may also be that you are trying to start the same Tomcat code twice, 
with different parameters (this is a technical possibility).


I don't know exactly what to tell you, but it seems that some things 
don't make sense otherwise.
In any case, the Connectors that you have activated in the server.xml, 
do not seem to match the ports that are really open for listening.


Maybe you should have a look at the ps and netstat options on your 
system, and proceed calmly and one bit at a time to find out what is 
running and using which ports.

Something like :
- turn off Apache
- turn off Tomcat
- turn off the other application supposedly using port 8088
Then do a
netstat -pan | grep LISTEN
(or maybe with -o as Chuck mentioned)
and save the result (keeping only the tcp-related lines)

Then turn on Apache, and do the same netstat command, and compare the 
result.  Any additional LISTEN port is probably Apache.

Save the result again.
- turn off Apache, and turn on the flash application
Do a netstat again and compare to the first one.
Etc...

When you have identified ports that really seem to belong to one or the 
other process consistently, then it is possible, with the appropriate 
options of netstat and ps, to find out which program is really running, 
that uses these ports.



The basic principle is this : it is not possible for two distinct 
processes (Tomcat, Apache, other app), to both have the same port open 
for listening (that's what the grep LISTEN is about above).
The first one that opens the port wins, and the second one trying to 
open the same port will get an error of the kind cannot bind.. port 
already in use (and that program will generally then refuse to even 
start)(but not necessarily; depending on the program, it may still run, 
in some cramped way; but Tomcat will probably not).


It may be that you installed Tomcat once, then de-installed it, then 
re-installed it in a new location but without removing first everything 
from the first one, etc.. or something of the kind.
I don't now exactly what is going on, but something is at the moment not 
clear, and it makes it almost impossible to help you, because when you 
access a given URL on a given port, we don't even know what process is 
really answering (or not).




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: javax.naming.NameNotFoundException with JAXWS RI 2.5 and Tomcat 6.0

2009-05-14 Thread Bharath R
Tomcat 6.0 supports version 2.5 of the servlet spec, whereas Tocmat 5.5
uses 2.4; the 2.5 spec includes resource annotations, whereas 2.4 doesn't.
 You didn't bother to specify a spec version in your web.xml.

Do you suggest I put the 2.4 servlet spec version in web.xml?

so Tomcat chose the one appropriate for its level; Tomcat 6.0 honored your
annotations while Tomcat 5.5 ignored them. Since the declared resources
weren't available, you received the appropriate error messages.

 Resource.class is present in lib directory under annotations-api.jar.
WebServiceContext.class is also present under the $CATALINA_HOME/lib
directory. Do you see any version problem in these classes?


--Bharath


Re: Difference between running bootstrap.jar and catalina.bat

2009-05-14 Thread Jan Horký
Hi, thank you for replay.

I tried to set various options in strartup.bat but It didn't work. It worked
only if I ran java -jar bootstrap.jar start command from commnad line in
tomcat\bin\. The thing which I'm interested in is which options (variables)
are used when I start Tomcat this way (java -jar boot...). Than I can try to
set service (windows registry, good to know, thx) same way as it's set when
I'm using bootstrap class to tomcat run.
Thanks for answer. Jan


On Thu, May 14, 2009 at 10:31 AM, André Warnier a...@ice-sa.com wrote:

 Jan Horkı wrote:

 Hi,

 I have problem with running my app. When I run Tomcat 5.5 | 6.0 by java
 -jar
 bootstrap.jar start It works fine, but when I try run it by catalina.bat
 or
 install as servise I got some class found problems.

 Shortly... Some features of application is based on jaxb1 and I need there
 web servise which is based on jwsdp2 (jaxb2). I put some jars to app/lib,
 some to tomcat/lib and some to java/lib and it works with java -jar
 bootstrap.jar start, but not as service.

  Hi.

 When you run Tomcat as a service under Windows, you are really running the
 program TOMCAT_DIR/bin/tomcat5.exe.  This is a wrapper program which
 includes what is needed to run as a Windows Service (catch start/stop
 service events etc..).  This wrapper program, in turn, runs the java jvm,
 and this java jvm runs Tomcat.

 When you start Tomcat via the startup.bat script, you are not using this
 wrapper program.  You run the java jvm directly, and it runs Tomcat.

 Ok so far ?

 When you run Tomcat from the startup.bat script, there are a number of
 environment values which are set by the startup script, before starting
 the java jvm.  Example : JAVA_OPTS, CATALINA_HOME, etc..

 When you run the Service wrapper TOMCAT_DIR/bin/tomcat5.exe, these
 parameters are not set via environment values. Instead they are in the
 Windows Registry.
 To modify these parameters, there exists another program, named
 TOMCAT_DIR/bin/tomcat5w.exe, which is a Windows GUI program that you can
 run, and which allows you to set the startup parameters.

 Try it, and see if that already answers some of your questions.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: General errors in virtual host setup

2009-05-14 Thread André Warnier

Dave Filchak wrote:
...


The site root is in /web/exodus.zuka.net/docs. I have added a ROOT 
directory to this. I have moved my exodus.war file into this ROOT 
directory. When I restart tomcat, the WAR file is not unpacked. I have 
verified the site by creating an index.htm file and then changing it 
to an index.jsp file and both work. Not sure why the WAR is not being 
unpacked and deployed. Here is what I currently have for a configuration:



About the ROOT etc..

suppose you have a simple Tomcat, listening on port 8080, with just one 
Host with one appBase directory (webapps), and the following file 
structure :

TOMCAT-INSTALL-DIR ( = CATALINA_HOME) :
- bin
- conf
- log
- webapps

   /ROOT
  stuff1
  WEB-INF/
web.xml
  META-INF/
context.xml

   /exodus
  stuff2
  WEB-INF/
web.xml
  META-INF/
context.xml

(the META-INF part is optional)

then you have 2 applications :
- the ROOT application, which is the *default* application.  This is the 
application that users get when they request a URL like :

http://server.company.com:8080/
- the exodus application. This is the application that users get when 
they request a URL like

http://server.company.com:8080/exodus/

You can make the exodus application be the default one, so that users 
will get the exodus application when they enter the URL

http://server.company.com:8080/

For that, you would :
- remove the current webapps/ROOT directory and all its content
- rename the directory webapps/exodus to webapps/ROOT

Note that, in that case, there would *not* be a exodus subdirectory 
under webapps/ROOT.  Your exodus directory has now become ROOT.


Similarly, if you want to deploy your application from a war-file and 
have this application be the default application, then you have to do 
the following :
- create your war-file by taking the *content* of the current exodus 
directory (not including the directory exodus itself, only its content)

- name this war-file ROOT.war
- drop this war-file ROOT.war directly in your Tomcat's webapps directory.
Tomcat will then unpack it, create the webapps/ROOT directory and its 
content, and your application will be the default application, and users 
will access it via

http://server.company.com:8080/

So, in summary, your application will be
- *either* the default application, deployed under webapps/ROOT, by 
dropping a file called ROOT.war directly into the webapps/ directory, 
and will be accessed via

http://server.company.com:8080/
- *or* the exodus application, deployed under webapps/exodus, by 
dropping a file called exodus.war directly into the webapps/ directory, 
and will be accessed via

http://server.company.com:8080/exodus

but not both.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat (re-)packaging, relocation etc..

2009-05-14 Thread Marcus Better
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

André Warnier wrote:
 I wonder if it is not time to make peace on this issue and maybe
 trying to find a reasonable middle ground.

As someone who has previously worked on Debian's packaging of Tomcat (though 
not very recently), I think it would be a great idea if Tomcat developers 
and packagers would start actually talking to each other. I'm sure the 
Debian maintainers would be happy to work together with the Tomcat team in a 
constructive manner to make life easier for all of us, and give users a 
better experience.

Cheers,

Marcus

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoMCCcACgkQXjXn6TzcAQmz/gCgqWL7uRTPr1rwxw6wu2yyTC8u
xYwAoJhxaX9VKz/dZnm3QagzeUmjD1uv
=LIaO
-END PGP SIGNATURE-



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



OutOfMemory Exception

2009-05-14 Thread Ramprasad Venkata Inala
Hi,

I have been using Tomcat6.1( running on windows ) for an application that has 
been connecting to Infor ERP LN ( formerly BaaN ).
It is given with a webapp which was installed on Tomcat and that's the way it 
connects to ERPLN from Tomcat.

This is setup running fine ( for 2 years now, no hassels ). As a new 
requirement we developed another application relying on the same architecture.
In this app we have voluminous data. So, we faced issues like time-out 
exception which was increased in server.xml as mentioned below.

Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=9
   redirectPort=8443 maxPostSize=0/

Later we ran in OutOfMemory  Exception. So I increased the memory pool sizes as 
shown below.

Initital memory Pool - 1024 MB
Maximum memory Pool - 1024 MB




Now that after increasing the above the error was gone. But after few requests 
it comes back. Since request and response sizes are about 2MB( which are usual 
in ERP scenarios ). The error is as below.

Exception in thread ContainerBackgroundProcessor[StandardEngine[Catalina]] 
java.lang.OutOfMemoryError: Java heap space
java.util.logging.ErrorManager: 1
java.lang.NullPointerException
at org.apache.juli.FileHandler.publish(FileHandler.java:136)
Exception in thread http-8080-2 java.lang.OutOfMemoryError: Java heap space

The memory size of process has hit high and doesn't come down at all.

Mem Usage - 137,700 K
Peak Mem Usage - 784,644 K
VM Size - 1,076,804

The above is on windows machine.

Can you please suggest how to resolve the issue?

Regards,
Ramprasad

The information contained in this communication is confidential, intended 
solely for the use of the individual or entity to whom it is addressed and may 
be legally privileged and protected by professional secrecy. Access to this 
message by anyone else is unauthorized. If you are not the intended recipient, 
any disclosure, copying, or distribution of the message, or any action or 
omission taken by you in reliance on it is prohibited and may be unlawful. 
Please immediately contact the sender if you have received this message in 
error. This email does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written agreement 
between the intended recipient and Cordys Holding BV or its subsidiaries. 
Cordys is neither liable for the proper and complete transmission of the 
information contained in this communication nor for any delay in its receipt. 
Cordys does not guarantee that the integrity of this communication has been 
maintained nor that the communication is free of viruses, interceptions or 
interference. If you are not the intended recipient of this communication 
please return the communication to the sender and delete and destroy all copies.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Peformance on socket reads

2009-05-14 Thread David kerber
This post is a follow-on to my performance with many small requests 
thread from a couple days ago.


I have been watching my app, and taking thread dumps when things seem to 
be running a bit slower than I would like.  Right now, the biggest 
bottleneck seems to be on the POST data read.  Here is the thread dump 
of interest (there are several identical ones in my full dump):


[2009-05-13 15:49:50] [info] http-1024-Processor11
[2009-05-13 15:49:50] [info] daemon
[2009-05-13 15:49:50] [info] prio=6 tid=0x26c97858
[2009-05-13 15:49:50] [info] nid=0xe18
[2009-05-13 15:49:50] [info] runnable
[2009-05-13 15:49:50] [info] [0x2761f000..0x2761fa64]
[2009-05-13 15:49:50] [info] at 
java.net.SocketInputStream.socketRead0(Native Method)
[2009-05-13 15:49:50] [info] at 
java.net.SocketInputStream.read(Unknown Source)
[2009-05-13 15:49:50] [info] at 
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
[2009-05-13 15:49:50] [info] at 
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
[2009-05-13 15:49:50] [info] at 
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115)
[2009-05-13 15:49:50] [info] at 
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712)
[2009-05-13 15:49:50] [info] at 
org.apache.coyote.Request.doRead(Request.java:423)
[2009-05-13 15:49:50] [info] at 
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
[2009-05-13 15:49:50] [info] at 
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:404)
[2009-05-13 15:49:50] [info] at 
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:298)
[2009-05-13 15:49:50] [info] at 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:192)
[2009-05-13 15:49:51] [info] at 
eddsrv.EddRcvr.processRequest(EddRcvr.java:198)

[2009-05-13 15:49:51] [info] at eddsrv.EddRcvr.doPost(EddRcvr.java:99)
[2009-05-13 15:49:51] [info] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
[2009-05-13 15:49:51] [info] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
[2009-05-13 15:49:51] [info] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
[2009-05-13 15:49:51] [info] at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
[2009-05-13 15:49:51] [info] at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
[2009-05-13 15:49:51] [info] at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
[2009-05-13 15:49:51] [info] at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
[2009-05-13 15:49:51] [info] at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

[2009-05-13 15:49:51] [info] at java.lang.Thread.run(Unknown Source)
[2009-05-13 15:49:51] [info]




The line eddsrv.EddRcvr.processRequest(EddRcvr.java:198) points to my 
InputStream.read() line.  All these variables are declared locally in 
the method doing the work, not at the class level, so there is no 
synchronization needed on them.  This method is called from the doPost() 
method of the servlet class.


Here are a few code lines for context setting:

req is my HttpServletRequest
iStream is a ServletInputStream


Then I have:

  len = req.getContentLength();
  b = new byte[ len ];
  iStream = req.getInputStream();
   /* this is the line 198 that the above thread dump is waiting for: */
  strLen = iStream.read( b, 0, len );
  iStream.close();


And then I convert b to a string and finish processing.  Is there 
anything stupid I'm missing that would cause the .read() to be slow?  Or 
is it just that my OS tcp/ip stack and/or network infrastructure appear 
to be slow?  I did quite a bit of reading on InputStream performance, it 
couldn't find any suggestions to improve on what I've already got (the 
biggest one was to read the whole thing at once 

Tomcat ReadTimout on Http post

2009-05-14 Thread czeno2002

Hi,

I'm experiencing a really ugly readtimout problem in the production system
started a couple of days ago. The main problem is that there is no way to
reproduce it at all and it happens only on the production boxes aprox 5
times at every hour.

We have a Cisco load balancer up front (no session stickiness) and 3 tomcat
instances (version 5.5) in the back and the site is over the SSL ( between
client and LoadBalance)

My first thought was that the problems happens when the client connection is
really slow, but unfortunately not :(.
I've also checked the LoadBalancer configuration for strange rules or packet
rejection policies but nothing ... anyway the error occurs only on HTTP POST
and it seams that there is no request body is delivered, it is just the
header.

Does somebody has some ideas ? Or at least what can I do in order to
reproduce it ?

I’ve check the request header info and the request are coming from different
IPs and from browsers agents ( IE6, IE7 )

The stack trace is the following:

java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at
java.net.SocketInputStream.read(SocketInputStream.java:129)
at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:748)
at
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:778)
at
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
at
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:713)
at org.apache.coyote.Request.doRead(Request.java:419)
at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:265)
at
org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:311)
at
org.apache.tomcat.util.buf.CharChunk.substract(CharChunk.java:412)
at
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:348)
at
org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:105)
at
org.apache.catalina.connector.CoyoteReader.readLine(CoyoteReader.java:154)

-- 
View this message in context: 
http://www.nabble.com/Tomcat-ReadTimout-on-Http-post-tp23539641p23539641.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: javax.naming.NameNotFoundException with JAXWS RI 2.5 and Tomcat 6.0

2009-05-14 Thread Martin Gainty

after you sort out the CNFE you'll want to address the lookup problem in this 
scenario the FactoryBean
JaxWsPortProxyFactoryBean returns
a proxy that implements our business service interface. In the example the 
JaxWsPortProxyFactoryBean
is used to create a proxy for the 'AccountService' endpoint 
  
bean id=accountWebService 
class=org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean
property name=serviceInterface value=example.AccountService/
property name=wsdlDocumentUrl 
value=http://localhost:8080/account/services/accountService?WSDL/
property name=namespaceUri 
value=http://localhost:8080/account/services/accountService/
property name=serviceName value=AccountService/
property name=portName value=AccountPort/
/beanconfiguration and usage details available at
http://static.springframework.org/spring/docs/2.5.6/reference/remoting.html

HTH
Martin Gainty 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de 
déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Thu, 14 May 2009 14:32:45 +0530
 Subject: Re: javax.naming.NameNotFoundException with JAXWS RI 2.5 and Tomcat  
 6.0
 From: bharath.mail.l...@gmail.com
 To: users@tomcat.apache.org
 
 Tomcat 6.0 supports version 2.5 of the servlet spec, whereas Tocmat 5.5
 uses 2.4; the 2.5 spec includes resource annotations, whereas 2.4 doesn't.
  You didn't bother to specify a spec version in your web.xml.
 
 Do you suggest I put the 2.4 servlet spec version in web.xml?
 
 so Tomcat chose the one appropriate for its level; Tomcat 6.0 honored your
 annotations while Tomcat 5.5 ignored them. Since the declared resources
 weren't available, you received the appropriate error messages.
 
  Resource.class is present in lib directory under annotations-api.jar.
 WebServiceContext.class is also present under the $CATALINA_HOME/lib
 directory. Do you see any version problem in these classes?
 
 
 --Bharath

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Re: Peformance on socket reads

2009-05-14 Thread Rainer Jung
On 14.05.2009 14:34, David kerber wrote:
 This post is a follow-on to my performance with many small requests
 thread from a couple days ago.
 
 I have been watching my app, and taking thread dumps when things seem to
 be running a bit slower than I would like.  Right now, the biggest
 bottleneck seems to be on the POST data read.  Here is the thread dump
 of interest (there are several identical ones in my full dump):
 
 [2009-05-13 15:49:50] [info] http-1024-Processor11
 [2009-05-13 15:49:50] [info] daemon
 [2009-05-13 15:49:50] [info] prio=6 tid=0x26c97858
 [2009-05-13 15:49:50] [info] nid=0xe18
 [2009-05-13 15:49:50] [info] runnable
 [2009-05-13 15:49:50] [info] [0x2761f000..0x2761fa64]
 [2009-05-13 15:49:50] [info] at
 java.net.SocketInputStream.socketRead0(Native Method)
 [2009-05-13 15:49:50] [info] at
 java.net.SocketInputStream.read(Unknown Source)
 [2009-05-13 15:49:50] [info] at
 org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
 
 [2009-05-13 15:49:50] [info] at
 org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
 
 [2009-05-13 15:49:50] [info] at
 org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115)
 
 [2009-05-13 15:49:50] [info] at
 org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712)
 
 [2009-05-13 15:49:50] [info] at
 org.apache.coyote.Request.doRead(Request.java:423)
 [2009-05-13 15:49:50] [info] at
 org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
 
 [2009-05-13 15:49:50] [info] at
 org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:404)
 [2009-05-13 15:49:50] [info] at
 org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:298)
 [2009-05-13 15:49:50] [info] at
 org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:192)
 
 [2009-05-13 15:49:51] [info] at
 eddsrv.EddRcvr.processRequest(EddRcvr.java:198)
 [2009-05-13 15:49:51] [info] at eddsrv.EddRcvr.doPost(EddRcvr.java:99)
 [2009-05-13 15:49:51] [info] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 [2009-05-13 15:49:51] [info] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 [2009-05-13 15:49:51] [info] at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 [2009-05-13 15:49:51] [info] at
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 
 [2009-05-13 15:49:51] [info] at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 
 [2009-05-13 15:49:51] [info] at java.lang.Thread.run(Unknown Source)
 [2009-05-13 15:49:51] [info]
 
 
 
 
 The line eddsrv.EddRcvr.processRequest(EddRcvr.java:198) points to my
 InputStream.read() line.  All these variables are declared locally in
 the method doing the work, not at the class level, so there is no
 synchronization needed on them.  This method is called from the doPost()
 method of the servlet class.
 
 Here are a few code lines for context setting:
 
 req is my HttpServletRequest
 iStream is a ServletInputStream
 
 
 Then I have:
 
   len = req.getContentLength();
   b = new byte[ len ];
   iStream = req.getInputStream();
/* this is the line 198 that the above thread dump is waiting for: */
   strLen = iStream.read( b, 0, len );
   iStream.close();
 
 
 And then I convert b to a string and finish processing.  Is there
 anything stupid I'm missing that would cause the .read() to be slow?  Or
 is it just that my OS tcp/ip stack and/or network infrastructure appear
 to be slow?  I did quite a bit of reading on InputStream 

RE: General errors in virtual host setup

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: Re: General errors in virtual host setup
 
 I can now connect to my default site as long as I add the port into the
 url. However, I have changed the port to 8081 and the connector port to
 8010. I did this because when I did a netstat -o, there were about 50
 connections in a CLOSE_WAIT state to port 8009. Now, when I restart
 tomcat I do not get any errors.

As André said, indicative that you have a second Tomcat running on this box.  
You need to find it, stop it, and delete it.

 The site root is in /web/exodus.zuka.net/docs. I have added a ROOT
 directory to this. I have moved my exodus.war file into this ROOT
 directory.

To summarize André: that's wrong.  Your .war file *must* be named ROOT.war and 
be placed in the /web/exodus.zuka.net/docs directory.  

 See anything I have screwed up?

See above.  You're not following the instructions given to you.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat GC threads

2009-05-14 Thread Chetan Chheda
All, 

    We are using -XX:+UseParNewGC option in our Tomcat JVMs with 
-XX:ParallelGCThreads=16 on a 6 CPU system. What is the real impact of having a 
higher number of GC threads than the number of CPUs? With the 2 tomcat JVMs 
running on the box, would you recommend changing it to 6 for each tomcat?

Thanks,
Chetan


  

RE: OutOfMemory Exception

2009-05-14 Thread Caldarale, Charles R
 From: Ramprasad Venkata Inala [mailto:rin...@cordys.com]
 Subject: OutOfMemory Exception
 
 I have been using Tomcat6.1

There's no such level; what are you really running?  Also, what JVM are you 
using?

 The memory size of process has hit high and doesn't come down at all.

And a heap profiler says what?  You can also look at the heap after the fact if 
you set the JVM parameter:
  -XX:+HeapDumpOnOutOfMemoryError

Put it in CATALINA_OPTS if running Tomcat from the command line, or use the 
Java tab of tomcat6w.exe to add it to the JVM parameters if running as a 
service.  Then use jhat from the JDK to find out what's eating up all the space.

You either have a memory leak in your webapp, or you're simply trying to 
receive more data than will fit in the heap.  If the latter, look at Apache 
Commons FileUpload to fetch the data:
http://commons.apache.org/fileupload/

If the former, fix your webapp.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat GC threads

2009-05-14 Thread Rainer Jung
On 14.05.2009 15:29, Chetan Chheda wrote:
 We are using -XX:+UseParNewGC option in our Tomcat JVMs with
 -XX:ParallelGCThreads=16 on a 6 CPU system. What is the real impact
 of having a higher number of GC threads than the number of CPUs? With
 the 2 tomcat JVMs running on the box, would you recommend changing it
 to 6 for each tomcat?

Nowadays it is more relevant how many cores or even hardware threads
your hardware effectively supports.

GC threads are only used for GC. So they don't have an influence of the
performance of your webapp apart from the times where the GC is running
(yes, they use a bit of memory etc. but we are not talking about 100
threads here).

Depending on your JVM version and start parameters, it is very likely,
that you are only sing parallel (mutli-threaded) GC for the young
generation. In most common situations this takes a 2 digit number of
milliseconds, so for most applications not really something to worry. If
you machine doesn't carry a lot of other load apart from your JVM, then
you can try to make efficient use out of the availabel CPU resource
during these pauses by setting the GC thread number to something like
the number of available parallelity in hardware (e.g. cores). The
defaults are not tha bad, except for huge machines, were you should
think about lowering from the default. In your case you could go with
the default or set the number to 6 (assuming 6 cores).

Using to many GC threads will be bad because it will increase GC pauses
instead of decreasing them.

The number is more important if you are using a huge heap (several
gigabytes) and a recent JVM version, so that you can collect the
tenured/old generation with multiple threads in parallel.

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: javax.naming.NameNotFoundException with JAXWS RI 2.5 and Tomcat 6.0

2009-05-14 Thread Caldarale, Charles R
 From: Bharath R [mailto:bharath.mail.l...@gmail.com]
 Subject: Re: javax.naming.NameNotFoundException with JAXWS RI 2.5 and
 Tomcat 6.0
 
 Do you suggest I put the 2.4 servlet spec version in web.xml?

That would probably work; you could also remove the annotations, since they're 
not doing anything useful at this point.

 Resource.class is present in lib directory under annotations-api.jar.
 WebServiceContext.class is also present under the $CATALINA_HOME/lib
 directory. Do you see any version problem in these classes?

The error you got was due to the annotation handlers not being available via 
JNDI; I'm unfamiliar with the mechanism of registering them.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General errors in virtual host setup

2009-05-14 Thread Dave Filchak

Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: Re: General errors in virtual host setup

I can now connect to my default site as long as I add the port into the
url. However, I have changed the port to 8081 and the connector port to
8010. I did this because when I did a netstat -o, there were about 50
connections in a CLOSE_WAIT state to port 8009. Now, when I restart
tomcat I do not get any errors.



As André said, indicative that you have a second Tomcat running on this box.  
You need to find it, stop it, and delete it.
  
Can I just kill all java pids and then restart the version of tomcat I 
know I installed?
  

The site root is in /web/exodus.zuka.net/docs. I have added a ROOT
directory to this. I have moved my exodus.war file into this ROOT
directory.



To summarize André: that's wrong.  Your .war file *must* be named ROOT.war and be placed in the /web/exodus.zuka.net/docs directory.  

  

See anything I have screwed up?



See above.  You're not following the instructions given to you.
  
Sorry Charles ... I don't remember being told that it had to be named 
ROOT.war. My bad I guess. I had read instructions for creating a war 
file and this was not mentioned. Is there an ultimate difference between 
deploying a WAR file and simply copying all of the needed files to a 
ROOT directory inside the appBase?

snip

  

Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



AW: Tomcat Cluster Deployment without WAR

2009-05-14 Thread Alexander Diedler
Hello,

No info about Deployment of Apps without war-Files?

 

Greetings

Alexander

 

 

Von: Alexander Diedler [mailto:adied...@tecracer.de] 
Gesendet: Mittwoch, 13. Mai 2009 15:52
An: Tomcat Users List
Betreff: Tomcat Cluster Deployment without WAR

 

Hello,

It is possible to make a Cluster Deployment without WAR Files? 

WatchDir is F:\inetpub\wwwroot  if there is something changed, it should be
deployed to all other cluster nodes.

 

 

Mit freundlichen Grüßen

tecRacer GmbH  Co. KG
Alexander Diedler
Softwareentwicklung und Netzwerksicherheit

Vahrenwalder Str. 156
30165 Hannover

Telefon: 0511 59095-950
Durchwahl: 0511 59095-919
Fax: 0511 59095-590
Mobil: 0172 5134664

E-Mail: adied...@tecracer.de
Internet: http://www.tecracer.de http://www.tecracer.de/  
 
Registergericht Hannover HRA 200331 
Geschäftsführer: Markus P. Herrlich, Sven Ramuschkat, Torsten Höpfner 
Kompl: tecRacer Verwaltungs GmbH, Hannover HRB 200935 

* E-Mails sparen Zeit; sie nicht auszudrucken, spart Bäume.

 



smime.p7s
Description: S/MIME cryptographic signature


RE: General errors in virtual host setup

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: Re: General errors in virtual host setup
 
 Can I just kill all java pids and then restart the version of tomcat I
 know I installed?

Yes, but if there's an /etc/init.d script for the one you don't want, it will 
restart when the system is rebooted.  You need to do a bit more work to find it 
and remove it.

 Is there an ultimate difference between deploying a WAR file 
 and simply copying all of the needed files to a ROOT directory
 inside the appBase?

If the .war file is named ROOT.war and located in the appBase directory, those 
are functionally identical.  (The name of the .war file or directory is the URL 
path to the webapp, with ROOT serving as a synonym for .)  Packaging as a 
.war just makes transporting the webapp easier; keeping it as an expanded 
directory makes updating pieces easier during development.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat Cluster Deployment without WAR

2009-05-14 Thread Caldarale, Charles R
 From: Alexander Diedler [mailto:adied...@tecracer.de]
 Subject: AW: Tomcat Cluster Deployment without WAR
 
 No info about Deployment of Apps without war-Files?

Just what's in the doc.  But if you don't bother to tell us something useful, 
such as the Tomcat version, then it's rather difficult to tell you where to 
look.  For the current level, it's here:
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Basic Java questions

2009-05-14 Thread Dave Filchak
In trying to troubleshoot my ongoing issues with deploying a Tomcat app, 
I have been trying to track down any duplicate java/tomcat installs. I 
made some changes I thought would work and now when I issue the command:


which java, I get:

/usr/bin/which: no java in 
(/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin)



So my next questions are going to be dumb I am sure but please bear with 
me as I try to learn this stuff:


Here is my environment:

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:   /usr/opt/jdk1.6.0_13
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:Linux
OS Version: 2.6.9-34.ELsmp
Architecture:   amd64
JVM Version:1.6.0_13-b03
JVM Vendor: Sun Microsystems Inc.

My $PATH is: 
/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin


But I get the error when I run which java.

I guess what I am asking is if the jdk I have installed the only java 
install I need and if so, why does which not find java at all?


Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Performance with many small requests

2009-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

On 5/12/2009 9:38 AM, Caldarale, Charles R wrote:
 Might be interesting to modify it to run with more cores, if you have
 a system available.

Here are the results I got on two different systems. Note that I
compiled the test code using the 1.5 JVM though it shouldn't matter at
all. I ran all these tests with little to no load on the server (I
stopped all TC instances to keep people from hitting them and wasting
server time :)

SYSTEM 1: 32-bit GNU/Linux kernel 2.6.14
- 
model name  : AMD Athlon(tm) XP 1700+
cpu MHz : 1470.260
bogomips: 2945.26

*** Java 1.5/client

$ java -version
java version 1.5.0_13
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode)

$ java TestSynch 1
secondary atomic time: 2010; ticks: 48157094
primary atomic time: 1981; ticks: 51842907
primary synchronized time: 40940; ticks: 49988735
secondary synchronized time: 40850; ticks: 50011266

$ java TestSynch 1
secondary atomic time: 2032; ticks: 49652307
primary atomic time: 1997; ticks: 50347694
primary synchronized time: 41086; ticks: 55617866
secondary synchronized time: 40998; ticks: 44382135

*** Java 1.5/server
$ java -version -server
java version 1.5.0_13
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Server VM (build 1.5.0_13-b05, mixed mode)

$ java -server TestSynch 1
secondary atomic time: 897; ticks: 47771660
primary atomic time: 860; ticks: 52228341
primary synchronized time: 37749; ticks: 49503874
secondary synchronized time: 37644; ticks: 50496127

$ java -server TestSynch 1
primary atomic time: 882; ticks: 55689446
secondary atomic time: 955; ticks: 44310555
primary synchronized time: 39245; ticks: 45526991
secondary synchronized time: 39350; ticks: 54473010


*** Java 1.6/client
$ java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

$ java TestSynch 1
secondary atomic time: 959; ticks: 47824199
primary atomic time: 980; ticks: 52175802
primary synchronized time: 26029; ticks: 56339037
secondary synchronized time: 24232; ticks: 43660964

$ java TestSynch 1
secondary atomic time: 1050; ticks: 47887651
primary atomic time: 1020; ticks: 52112350
secondary synchronized time: 25947; ticks: 42345253
primary synchronized time: 26042; ticks: 57654748

*** Java 1.6/server
$ java -server -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode, sharing)

$ java -server TestSynch 1
secondary atomic time: 973; ticks: 46198801
primary atomic time: 942; ticks: 53801200
secondary synchronized time: 449; ticks: 3906780
primary synchronized time: 2256; ticks: 96093221

$ java -server TestSynch 1
secondary atomic time: 928; ticks: 55025620
primary atomic time: 924; ticks: 44974381
primary synchronized time: 2672; ticks: 44065122
secondary synchronized time: 2568; ticks: 55934879


SYSTEM 2: 32-bit Windows Vista SP1
- 
Processor: Core 2 Duo Merom T7500 (2.2GHz)

C:\Users\chris\Desktopjava -client -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

C:\Users\chris\Desktopjava -client TestSynch 1
primary atomic time: 4034; ticks: 52861711
secondary atomic time: 4034; ticks: 47138290
secondary synchronized time: 21446; ticks: 50758159
primary synchronized time: 21446; ticks: 49241842

C:\Users\chris\Desktopjava -client TestSynch 1
primary atomic time: 4351; ticks: 45396375
secondary atomic time: 4351; ticks: 54603626
secondary synchronized time: 18824; ticks: 50273205
primary synchronized time: 18824; ticks: 49726796

Oddly enough, I don't have the server VM installed, so I can't check
that performance right now.

Seems that on my two systems, atomics are faster than language-level
synchronization, regardless of client versus server, or 1.5 versus 1.6
(though both using -server and 1.6 both give a significant performance
boost to the language-level synchronization).

I didn't find this code to exhibit high lock contention: there are only
two threads at work, though they are doing nothing but acquiring locks
(and incrementing integers, which should be trivial).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMXasACgkQ9CaO5/Lv0PCysACeKVMPuHn1HV32zgETXgD8bzFb
t5oAniwV24MvuAarjpXUQwbhxweTMJ1P
=T9f3
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread Ken Bowen

Hard to say about everything.  But

/opt/java/bin/java

in your path is very suspicious.  Check whether that is in fact the  
executable itself by just trying to execute


/opt/java/bin/java

It might be that you need /opt/java/bin in the path instead.   I also  
would cd to /opt/java/jdk1.6.0_13/bin and do an ls to see what's there.


On May 14, 2009, at 2:02 PM, Dave Filchak wrote:

In trying to troubleshoot my ongoing issues with deploying a Tomcat  
app, I have been trying to track down any duplicate java/tomcat  
installs. I made some changes I thought would work and now when I  
issue the command:


which java, I get:

/usr/bin/which: no java in (/opt/java/bin/java:/usr/kerberos/sbin:/ 
usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/ 
sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin)



So my next questions are going to be dumb I am sure but please bear  
with me as I try to learn this stuff:


Here is my environment:

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:   /usr/opt/jdk1.6.0_13
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:Linux
OS Version: 2.6.9-34.ELsmp
Architecture:   amd64
JVM Version:1.6.0_13-b03
JVM Vendor: Sun Microsystems Inc.

My $PATH is: /opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/ 
bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/ 
usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin


But I get the error when I run which java.

I guess what I am asking is if the jdk I have installed the only  
java install I need and if so, why does which not find java at all?


Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread André Warnier

Dave Filchak wrote:
In trying to troubleshoot my ongoing issues with deploying a Tomcat app, 
I have been trying to track down any duplicate java/tomcat installs. I 
made some changes I thought would work and now when I issue the command:


which java, I get:

/usr/bin/which: no java in 
(/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin) 




So my next questions are going to be dumb I am sure but please bear with 
me as I try to learn this stuff:


Here is my environment:

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:   /usr/opt/jdk1.6.0_13
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:Linux
OS Version: 2.6.9-34.ELsmp
Architecture:   amd64
JVM Version:1.6.0_13-b03
JVM Vendor: Sun Microsystems Inc.

My $PATH is: 
/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin 



But I get the error when I run which java.

I guess what I am asking is if the jdk I have installed the only java 
install I need and if so, why does which not find java at all?


I don't know, but the more you tell us, the more I believe that this is 
one screwed-up system.. ;-)


Try these 3 commands :

id

echo $PATH

and

find / -name java

and let us see the output

and then, just by curiosity, do

ls -l /opt/java/bin/java

and let us see that too

and, just for fun, try

java -version

and ditto


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-14 Thread Pantvaidya, Vishwajit
I set connectionTimeout in server.xml to 60 and now the RUNNABLE threads go 
back to WAITING stage after that time.

But our other servers which are running the same configuration, same webapp and 
do not have connectionTimeout set in server.xml, do not show so many RUNNABLE 
threads, but more WAITING threads. So looks like the threads are getting 
recycled properly there.

Any idea why could this be? Could it be the OS (all servers run Linux but I do 
not know which flavors/versions)?



-Original Message-
From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] 
Sent: Wednesday, May 13, 2009 2:28 PM
To: users@tomcat.apache.org
Subject: Running out of tomcat threads - why many threads in RUNNABLE stage 
even with no activity

My setup is tomcat 5.5.17 + mod_jk 1.2.15 + httpd 2.2.2. I am using AJP1.3.
Every 2-3 days with no major load, tomcat throws the error: SEVERE: All 
threads (200) are currently busy, waiting...

I have been monitoring my tomcat TP-Processor thread behavior over extended 
time intervals and observe that:
- even when there is no activity on the server, several TP-Processor threads 
are in RUNNABLE state while few are in WAITING state
- RUNNABLE threads stack trace shows java.lang.Thread.State: RUNNABLE at 
java.net.SocketInputStream.socketRead0(Native Method)...
- WAITING thread stack trace shows java.lang.Thread.State: WAITING on 
org.apache.tomcat.util.threads.threadpool$controlrunna...@53533c55
- tomcat adds 4 new TP-Processor threads when a request comes in and it can 
find no WAITING threads

So I conclude that my tomcat is running out of threads due to many threads 
being in RUNNABLE state when actually they should be in WAITING state. Is that 
happening because of the socket_keepalive in my workers.properties shown below?
Why are threads added in bunches of 4 - is there any way to configure this?

My workers config is:

Worker...type=ajp13
Worker...cachesize=10
Worker...cache_timeout=600
Worker...socket_keepalive=1
Worker...recycle_timeout=300
 
Earlier posts related to this issue on the list seem to recommend tweaking:
- several timeouts
- JkOptions +DisableReuse

I am planning to do the following to resolve our problem:
- upgrade jk to latest version - e.g. 1.2.28
- replace recycle_timeout with connection_pool_timeout
- add connectionTimeout in server.xml
- add JkOptions +DisableReuse

Please let me know if this is okay or suggestions if any.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Form Based Authentication creates user session before it is authenticated?

2009-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 5/13/2009 8:16 AM, Caldarale, Charles R wrote:
 From: umeshkavade [mailto:umeshkav...@yahoo.co.in]
 Subject: Re: Form Based Authentication creates user session before it
 is authenticated?

 P.S: BTW, is Tomcat planning to resolve this vulnerability in near
 future?
 
 I'll bite: what vulnerability are you referring to?

Session fixation which is essentially a form of session hijacking.
Basically, you get yourself a session and a session id from the server.
You write that down and walk away. Then, you trick someone else into
sitting down and logging-in. Since the session id does not change, you
can go to another machine, hijack the user's session, and impersonate them.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMY7EACgkQ9CaO5/Lv0PAVuQCgq3BW343Iydg+ZAfaT4y0sWup
EjQAnRTFEa0KRoPlNQtNwiL51hAk3MbW
=i/jw
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Form Based Authentication creates user session before it is authenticated?

2009-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

On 5/13/2009 9:27 AM, Martin Gainty wrote:
 if you are asking how to overcome Man-in-the-middle fraudulent
 manipulation based on basic authentication?

He's not.

 and or Man-in-the middle
 fraudulent manipulation based on Form-based authentication which uses
 j_username and j_password and posts back to j_security_check using
 cleartext?

He's not asking that, either.

 i would suggest implementation authentication using either
 Message-Digest or HTTPS Message-Digest

This does not solve the problem, which is session hijacking, not
protection of credentials.

You have wasted a great deal of your time coming up with that response.
Instead, you should have read the referenced thread and contributed to
the discussion of protection against session fixation, instead of
posting tips on how to protect credentials.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMZGUACgkQ9CaO5/Lv0PCg1wCdFV8/BDav0DR+g6dg0MU70HeI
7qYAoJtB3AUbI9f9uMCwLW07ej2lH64N
=zjkh
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



.html pages as .jsp pages

2009-05-14 Thread Dola Woolfe

Hi,

I need to give my jsp files the extension .html

1. How do I configure tomcat to treat .html files as .jsp files?

2. Off topic? How do I set up Eclipse so that .html files are opened with the 
same editor as .jsp files and give me all of the syntax highlighting, etc.

Many thanks in advance,

Dola


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread Dave Filchak

André Warnier wrote:

Dave Filchak wrote:
In trying to troubleshoot my ongoing issues with deploying a Tomcat 
app, I have been trying to track down any duplicate java/tomcat 
installs. I made some changes I thought would work and now when I 
issue the command:


which java, I get:

/usr/bin/which: no java in 
(/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin) 




So my next questions are going to be dumb I am sure but please bear 
with me as I try to learn this stuff:


Here is my environment:

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:   /usr/opt/jdk1.6.0_13
Server version: Apache Tomcat/6.0.18
Server built:   Jul 22 2008 02:00:36
Server number:  6.0.18.0
OS Name:Linux
OS Version: 2.6.9-34.ELsmp
Architecture:   amd64
JVM Version:1.6.0_13-b03
JVM Vendor: Sun Microsystems Inc.

My $PATH is: 
/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin 



But I get the error when I run which java.

I guess what I am asking is if the jdk I have installed the only java 
install I need and if so, why does which not find java at all?


I don't know, but the more you tell us, the more I believe that this 
is one screwed-up system.. ;-)
It is either the system  or me ;-) This was administered by someone 
else originally and he did not follow the templates for where things go.


Try these 3 commands :

id
uid=0(root) gid=0(root) 
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)




echo $PATH

/opt/java/bin/java:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin


and

find / -name java

/home/jason/Dolphin/java
/home/jason/old/Dolphin/java
/home/jason/old/busted/java
/home/jason/old/busted/devel.old/java
/home/webadmin/work/java
/usr/opt/jdk1.6.0_13/jre/bin/java
/usr/opt/jdk1.6.0_13/bin/java
/usr/opt/jdk1.6.0_13/db/demo/programs/scores/java
/usr/opt/jdk1.6.0_13/db/demo/programs/vtis/java
/usr/opt/java (this is a symlink to /usr/opt/jdk1.6.0_13)
/usr/opt/jdk1.5.0_05/jre/bin/java
/usr/opt/jdk1.5.0_05/bin/java
/usr/lib64/swig1.3/java
/usr/local/BerkeleyDB.4.4/docs/ref/java
/usr/local/BerkeleyDB.4.4/docs/java
/usr/java (this is a symlink to /opt/java)
/usr/share/javadoc/java
/usr/share/java
/usr/share/doc/libidn-devel-0.5.6/contrib/java
/usr/share/doc/db4-devel-4.2.52/ref/java
/usr/lib/java
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/include/gnu/java
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/include/java
/usr/java.old/jdk1.6.0_01/jre/bin/java
/usr/java.old/jdk1.6.0_01/bin/java
/usr/bin/java
/etc/java
/var/cvs/Dolphin/java



and let us see the output

and then, just by curiosity, do

ls -l /opt/java/bin/java

ls -l /opt/java/bin/java
-rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java



and let us see that too

and, just for fun, try

java -version

and ditto

java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Difference between running bootstrap.jar and catalina.bat

2009-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jan,

On 5/14/2009 5:05 AM, Jan Horký wrote:
 Hi, thank you for replay.
 
 I tried to set various options in strartup.bat but It didn't work. It
 worked only if I ran java -jar bootstrap.jar start command from
 commnad line in tomcat\bin\. The thing which I'm interested in is
 which options (variables) are used when I start Tomcat this way (java
 -jar boot...). Than I can try to set service (windows registry, good
 to know, thx) same way as it's set when I'm using bootstrap class to
 tomcat run.

When you say it doesn't work, what /does/ happen? Log files? Console
output?

I suspect you've messed-up Tomcat's lib directory and there are odd
dependencies not being fulfilled. You shouldn't have put anything into
Java's lib directory. You should probably also not have put anything
into Tomcat's lib directory. You should deploy the application-specific
JAR files into the webapp's WEB-INF/lib directory.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMaXUACgkQ9CaO5/Lv0PC5HACgqpYBYbdDf5NqJEDo7ZHrc+FX
+8cAoJ0vvB65bJuxdis/m2NecvD/ev/W
=hETv
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to get thread dump on Tomcat 6 (windows)

2009-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Madhu,

On 5/14/2009 4:02 AM, madhu sudhan bandari wrote:
 I am running my applications on Tomcat 6.0 at windows 2000 server.
 
 I have tried to use ctrl+break to get thread dump on the command prompt
 where the process is running but didn't get the expected output.

What output /did/ you get?

Since you're using Tomcat 6.0 you should be running Java 1.5 or better.
If you are running Java 1.6, you should have a program called
jstack.exe available, which can produce a thread dump.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMagsACgkQ9CaO5/Lv0PAjuQCgj3d5hvEqdXHSeu0YAv/efmPm
sFkAoMRGQh5Dl6PZnMhzkv2SV58mQ+HT
=9oiX
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: .html pages as .jsp pages

2009-05-14 Thread Martin Gainty

!-- The mapping for the JSP servlet --
servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.html/url-pattern
/servlet-mapping

could you elaborate the business need to do this..?
you would be invoking the JspServlet for pages
for pages which need no Jsp precompilation?

Martin Gainty 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de 
déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Thu, 14 May 2009 11:43:47 -0700
 From: dolac...@yahoo.com
 Subject: .html pages as .jsp pages
 To: tomcat-u...@jakarta.apache.org
 
 
 Hi,
 
 I need to give my jsp files the extension .html
 
 1. How do I configure tomcat to treat .html files as .jsp files?
 
 2. Off topic? How do I set up Eclipse so that .html files are opened with the 
 same editor as .jsp files and give me all of the syntax highlighting, etc.
 
 Many thanks in advance,
 
 Dola
 
 
   
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

_
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009

RE: .html pages as .jsp pages

2009-05-14 Thread Dola Woolfe

I create pages dynamics pages in JSP. That way I control dynamic content and 
look at feel.

Then I  wget -m the whole website and upload it to the server where it acts 
as static content and I want all of my pages to have the usual .html extension.


Let me know if you think the whole approach is stupid.


--- On Thu, 5/14/09, Martin Gainty mgai...@hotmail.com wrote:

 From: Martin Gainty mgai...@hotmail.com
 Subject: RE: .html pages as .jsp pages
 To: Tomcat Users List users@tomcat.apache.org, 
 tomcat-u...@jakarta.apache.org
 Date: Thursday, May 14, 2009, 3:09 PM
 
     !-- The mapping for the JSP servlet
 --
     servlet
        
 servlet-namejsp/servlet-name
        
 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
         init-param
            
 param-namefork/param-name
            
 param-valuefalse/param-value
         /init-param
         init-param
            
 param-namexpoweredBy/param-name
            
 param-valuefalse/param-value
         /init-param
        
 load-on-startup3/load-on-startup
     /servlet
 
     servlet-mapping
        
 servlet-namejsp/servlet-name
        
 url-pattern*.html/url-pattern
     /servlet-mapping
 
 could you elaborate the business need to do this..?
 you would be invoking the JspServlet for pages
 for pages which need no Jsp precompilation?
 
 Martin Gainty 
 __ 
 Disclaimer and Confidentiality/Verzicht und
 Vertraulichkeitanmerkung/Note de déni et de
 confidentialité
 This message is confidential. If you should not be the
 intended receiver, then we ask politely to report. Each
 unauthorized forwarding or manufacturing of a copy is
 inadmissible. This message serves only for the exchange of
 information and has no legal binding effect. Due to the easy
 manipulation of emails we cannot take responsibility over
 the the contents.
 Diese Nachricht ist vertraulich. Sollten Sie nicht der
 vorgesehene Empfaenger sein, so bitten wir hoeflich um eine
 Mitteilung. Jede unbefugte Weiterleitung oder Fertigung
 einer Kopie ist unzulaessig. Diese Nachricht dient lediglich
 dem Austausch von Informationen und entfaltet keine
 rechtliche Bindungswirkung. Aufgrund der leichten
 Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer
 den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si
 vous n'êtes pas le destinataire prévu, nous te demandons
 avec bonté que pour satisfaire informez l'expéditeur.
 N'importe quelle diffusion non autorisée ou la copie de
 ceci est interdite. Ce message sert à l'information
 seulement et n'aura pas n'importe quel effet légalement
 obligatoire. Étant donné que les email peuvent facilement
 être sujets à la manipulation, nous ne pouvons accepter
 aucune responsabilité pour le contenu fourni.
 
 
 
 
  Date: Thu, 14 May 2009 11:43:47 -0700
  From: dolac...@yahoo.com
  Subject: .html pages as .jsp pages
  To: tomcat-u...@jakarta.apache.org
  
  
  Hi,
  
  I need to give my jsp files the extension .html
  
  1. How do I configure tomcat to treat .html files as
 .jsp files?
  
  2. Off topic? How do I set up Eclipse so that .html
 files are opened with the same editor as .jsp files and give
 me all of the syntax highlighting, etc.
  
  Many thanks in advance,
  
  Dola
  
  
        
  
 
 -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
  
 
 _
 Insert movie times and more without leaving Hotmail®.
 http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



file type being blocked by IE

2009-05-14 Thread Brandon Steward
I have a Tomcat web application that generates output files and the 
files have the extension .zip.  I try to download them in IE, but I get 
the generic error from IE saying it cannot download the file.  I can try 
the same thing in Firefox and it works just fine.  I've tried going 
through my IE security settings, but I haven't had any luck.  Has anyone 
had this problem before and if so, were you able to fix it or develop a 
workaround?


Thanks,
Brandon


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Hi Tomcat'ers,

I'm completely new to Tomcat, and very unfamiliar with JSP or web
applications in general. I've been trying to set up an application on my
system (Ubuntu 9.04) that works just fine on my colleagues' systems (Windows
XP). I've got Tomcat working just fine, and the manager and demo
applications all work. But loading our application was giving me errors.
Before I can let you know what the errors are, I need help making Tomcat
write them once again to the log files. See, I did a silly thing. I wanted
to clear the log files (catalina.out and ourapp.log), so I just opened them,
emptied them, and resaved them. (Dumb, I know. I was getting frustrated.) Lo
and behold, Tomcat stopped writing to them, even after completely restarting
my computer. How can I get Tomcat to rewrite to these files? I've searched
all over this group's archive and the web, and the closest thing I found was
this not so helpful suggestion (
http://marc.info/?l=tomcat-userm=107947604330561w=2). Any ideas?

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


What is the difference?

2009-05-14 Thread Dave Filchak

Curious,

What is the difference between java -version and java version?

In the first case I get:

java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

In the second, I get:

java version
Exception in thread main java.lang.NoClassDefFoundError: version
Caused by: java.lang.ClassNotFoundException: version
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: version.  Program will exit.


Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread Ken Bowen

Below...

On May 14, 2009, at 2:49 PM, Dave Filchak wrote:


ls -l /opt/java/bin/java
-rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java


Per my earlier message, this is (part of) your problem.  /opt/java/bin/ 
java is an executable, but what should be on your path is a directory  
where the executable can be found.  So /opt/java/bin/java should be  
shortened to /opt/java/bin on your path.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What is the difference?

2009-05-14 Thread Michael A. Repucci
The java -version returns the version of the JVM you're using. The java
version attempts to start a Java application whose class name is version.
See the man pages for java for more information.

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 3:48 PM, Dave Filchak sub...@zuka.net wrote:

 Curious,

 What is the difference between java -version and java version?

 In the first case I get:

 java -version
 java version 1.6.0_13
 Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

 In the second, I get:

 java version
 Exception in thread main java.lang.NoClassDefFoundError: version
 Caused by: java.lang.ClassNotFoundException: version
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 Could not find the main class: version.  Program will exit.


 Dave

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: .html pages as .jsp pages

2009-05-14 Thread Ken Bowen
The point of dynamic jsp pages is to dynamically create pages on the  
fly based on information from the user.
What's the point of using jsp to dynamically create pages offline  
that you only serve statically?  Why not just

write them in html from the beginning?

On May 14, 2009, at 3:16 PM, Dola Woolfe wrote:



I create pages dynamics pages in JSP. That way I control dynamic  
content and look at feel.


Then I  wget -m the whole website and upload it to the server  
where it acts as static content and I want all of my pages to have  
the usual .html extension.



Let me know if you think the whole approach is stupid.


--- On Thu, 5/14/09, Martin Gainty mgai...@hotmail.com wrote:


From: Martin Gainty mgai...@hotmail.com
Subject: RE: .html pages as .jsp pages
To: Tomcat Users List users@tomcat.apache.org, 
tomcat-u...@jakarta.apache.org
Date: Thursday, May 14, 2009, 3:09 PM

!-- The mapping for the JSP servlet
--
servlet

servlet-namejsp/servlet-name

servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param

param-namefork/param-name

param-valuefalse/param-value
/init-param
init-param

param-namexpoweredBy/param-name

param-valuefalse/param-value
/init-param

load-on-startup3/load-on-startup
/servlet

servlet-mapping

servlet-namejsp/servlet-name

url-pattern*.html/url-pattern
/servlet-mapping

could you elaborate the business need to do this..?
you would be invoking the JspServlet for pages
for pages which need no Jsp precompilation?

Martin Gainty
__
Disclaimer and Confidentiality/Verzicht und
Vertraulichkeitanmerkung/Note de déni et de
confidentialité
This message is confidential. If you should not be the
intended receiver, then we ask politely to report. Each
unauthorized forwarding or manufacturing of a copy is
inadmissible. This message serves only for the exchange of
information and has no legal binding effect. Due to the easy
manipulation of emails we cannot take responsibility over
the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der
vorgesehene Empfaenger sein, so bitten wir hoeflich um eine
Mitteilung. Jede unbefugte Weiterleitung oder Fertigung
einer Kopie ist unzulaessig. Diese Nachricht dient lediglich
dem Austausch von Informationen und entfaltet keine
rechtliche Bindungswirkung. Aufgrund der leichten
Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer
den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si
vous n'êtes pas le destinataire prévu, nous te demandons
avec bonté que pour satisfaire informez l'expéditeur.
N'importe quelle diffusion non autorisée ou la copie de
ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement
obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.





Date: Thu, 14 May 2009 11:43:47 -0700
From: dolac...@yahoo.com
Subject: .html pages as .jsp pages
To: tomcat-u...@jakarta.apache.org


Hi,

I need to give my jsp files the extension .html

1. How do I configure tomcat to treat .html files as

.jsp files?


2. Off topic? How do I set up Eclipse so that .html

files are opened with the same editor as .jsp files and give
me all of the syntax highlighting, etc.


Many thanks in advance,

Dola






-

To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



_
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What is the difference?

2009-05-14 Thread Pid
Dave Filchak wrote:
 Curious,
 
 What is the difference between java -version and java version?
 
 In the first case I get:
 
 java -version
 java version 1.6.0_13
 Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

You've set the attribute version, denoted by the -.

 In the second, I get:

You've asked java to execute a class called version
Try the command help and doing some reading on the sun java website.

p



 java version
 Exception in thread main java.lang.NoClassDefFoundError: version
 Caused by: java.lang.ClassNotFoundException: version
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
 Could not find the main class: version.  Program will exit.
 
 
 Dave
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What is the difference?

2009-05-14 Thread Ken Bowen
The dash (-) tells the java execution program to treat it's first  
argument as a swtich, which it knows how to handle.
Without the dash, the java execution program thinks that its first  
argument (version) is the name of a class which it should try to  
execute (but can't find).


On May 14, 2009, at 3:48 PM, Dave Filchak wrote:


Curious,

What is the difference between java -version and java version?

In the first case I get:

java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

In the second, I get:

java version
Exception in thread main java.lang.NoClassDefFoundError: version
Caused by: java.lang.ClassNotFoundException: version
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: version.  Program will exit.


Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What is the difference?

2009-05-14 Thread Frank W. Zammetti

Err, one is correct and one is not :)

-version does what you expect: gives you information on the JVM that is 
executing.  Just putting version however is telling the JVM to load a 
class named version and execute it, which of course it can't find, hence 
the ClassNotFoundException you see.


Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
All you could possibly want is here: zammetti.com


Dave Filchak wrote:

Curious,

What is the difference between java -version and java version?

In the first case I get:

java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

In the second, I get:

java version
Exception in thread main java.lang.NoClassDefFoundError: version
Caused by: java.lang.ClassNotFoundException: version
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: version.  Program will exit.


Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


__ Information from ESET Smart Security, version of virus 
signature database 4076 (20090514) __


The message was checked by ESET Smart Security.

http://www.eset.com







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: file type being blocked by IE

2009-05-14 Thread Todd Hivnor

I'm not sure if it still behaves this way. But historically IE has ignored the 
declared content-type and instead used the file extension. The work-around was 
to add a bogus argument to the URL:

http://server/get-the-goodies.jsp?filetype=.zip

This way it looks like a .zip file to IE.

Also, when IE returns a generic error and you want to know what it is, 
consider disabling Friendly error messages. Use:
 Tools-Internet Options-Advanced-Uncheck Show Friendly HTTP Error messages.




- Original Message 
From: Brandon Steward bstew...@jsu.edu
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 14, 2009 12:26:17 PM
Subject: file type being blocked by IE

I have a Tomcat web application that generates output files and the files have 
the extension .zip.  I try to download them in IE, but I get the generic error 
from IE saying it cannot download the file.  I can try the same thing in 
Firefox and it works just fine.  I've tried going through my IE security 
settings, but I haven't had any luck.  Has anyone had this problem before and 
if so, were you able to fix it or develop a workaround?

Thanks,
Brandon


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



juddi -Tomcat 6

2009-05-14 Thread Arundhati Chabukswar
Hi,

Can someone help me set up or give me directions to set up a juddi in the
Tomcat 6.0 server and provide directions to the dependancy files required.

Thanks,
Arundhati


Re: .html pages as .jsp pages

2009-05-14 Thread André Warnier

Ken Bowen wrote:
The point of dynamic jsp pages is to dynamically create pages on the fly 
based on information from the user.
What's the point of using jsp to dynamically create pages offline that 
you only serve statically?  Why not just

write them in html from the beginning?


+1
and I must say that I'm curious to see the answer.
:-)
Writing the pages with jsp is a lot more cool though.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: file type being blocked by IE

2009-05-14 Thread André Warnier

Brandon Steward wrote:
I have a Tomcat web application that generates output files and the 
files have the extension .zip.  I try to download them in IE, but I get 
the generic error from IE saying it cannot download the file.  I can try 
the same thing in Firefox and it works just fine.  I've tried going 
through my IE security settings, but I haven't had any luck.

Start by disabling the friendly error pages.

  Has anyone
had this problem before and if so, were you able to fix it or develop a 
workaround?


No, but you might try to get the HttpFox add-on for Firefox, and the 
Fiddler2 add-on for IE, and compare what your browser is sending, and 
what it is receiving in either case.  I mean the HTTP headers in both 
directions.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: file type being blocked by IE

2009-05-14 Thread Brandon Steward

For example, the link shows up as:

http://servername/contextpath/filename.zip

I tried adding the ?filetype=.zip to the end of the link, but that 
didn't make any difference.


Do you have any other suggestions?

Thanks,
Brandon


Todd Hivnor wrote:

I'm not sure if it still behaves this way. But historically IE has ignored the 
declared content-type and instead used the file extension. The work-around was 
to add a bogus argument to the URL:

http://server/get-the-goodies.jsp?filetype=.zip

This way it looks like a .zip file to IE.

Also, when IE returns a generic error and you want to know what it is, consider 
disabling Friendly error messages. Use:
 Tools-Internet Options-Advanced-Uncheck Show Friendly HTTP Error messages.




- Original Message 
From: Brandon Steward bstew...@jsu.edu
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 14, 2009 12:26:17 PM
Subject: file type being blocked by IE

I have a Tomcat web application that generates output files and the files have 
the extension .zip.  I try to download them in IE, but I get the generic error 
from IE saying it cannot download the file.  I can try the same thing in 
Firefox and it works just fine.  I've tried going through my IE security 
settings, but I haven't had any luck.  Has anyone had this problem before and 
if so, were you able to fix it or develop a workaround?

Thanks,
Brandon


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Hi Tomcat'ers,

I'm completely new to Tomcat, and very unfamiliar with JSP or web
applications in general. I've been trying to set up an application on my
system (Ubuntu 9.04) that works just fine on my colleagues' systems (Windows
XP). I've got Tomcat working just fine, and the manager and demo
applications all work. But loading our application was giving me errors.
Before I can let you know what the errors are, I need help making Tomcat
write them once again to the log files. See, I did a silly thing. I wanted
to clear the log files (catalina.out and ourapp.log), so I just opened them,
emptied them, and resaved them. (Dumb, I know. I was getting frustrated.) Lo
and behold, Tomcat stopped writing to them, even after completely restarting
my computer. How can I get Tomcat to rewrite to these files? I've searched
all over this group's archive and the web, and the closest thing I found was
this not so helpful suggestion (
http://marc.info/?l=tomcat-userm=107947604330561w=2). Any ideas?

Did you try stopping Tomcat, deleting these logfiles altogether, and 
restarting Tomcat ?


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: file type being blocked by IE

2009-05-14 Thread Brandon Steward
I've disabled the show friendly error pages.  Here's the screenshot of 
the error.


Brandon

André Warnier wrote:

Brandon Steward wrote:
I have a Tomcat web application that generates output files and the 
files have the extension .zip.  I try to download them in IE, but I 
get the generic error from IE saying it cannot download the file.  I 
can try the same thing in Firefox and it works just fine.  I've tried 
going through my IE security settings, but I haven't had any luck.

Start by disabling the friendly error pages.

  Has anyone
had this problem before and if so, were you able to fix it or develop 
a workaround?


No, but you might try to get the HttpFox add-on for Firefox, and the 
Fiddler2 add-on for IE, and compare what your browser is sending, and 
what it is receiving in either case.  I mean the HTTP headers in both 
directions.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: What is the difference?

2009-05-14 Thread André Warnier

I'm frustrated.
For once there was a question which was right at my level, you guys all 
beat me to answer it.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:09 PM, André Warnier a...@ice-sa.com wrote:

 Michael A. Repucci wrote:

 Hi Tomcat'ers,

 I'm completely new to Tomcat, and very unfamiliar with JSP or web
 applications in general. I've been trying to set up an application on my
 system (Ubuntu 9.04) that works just fine on my colleagues' systems
 (Windows
 XP). I've got Tomcat working just fine, and the manager and demo
 applications all work. But loading our application was giving me errors.
 Before I can let you know what the errors are, I need help making Tomcat
 write them once again to the log files. See, I did a silly thing. I wanted
 to clear the log files (catalina.out and ourapp.log), so I just opened
 them,
 emptied them, and resaved them. (Dumb, I know. I was getting frustrated.)
 Lo
 and behold, Tomcat stopped writing to them, even after completely
 restarting
 my computer. How can I get Tomcat to rewrite to these files? I've searched
 all over this group's archive and the web, and the closest thing I found
 was
 this not so helpful suggestion (
 http://marc.info/?l=tomcat-userm=107947604330561w=2). Any ideas?

  Did you try stopping Tomcat, deleting these logfiles altogether, and
 restarting Tomcat ?

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: What is the difference?

2009-05-14 Thread Dave Filchak

André Warnier wrote:

I'm frustrated.
For once there was a question which was right at my level, you guys 
all beat me to answer it.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


OK OK ... It was a dumb question. I am tired and more than a bit 
frustrated as well ;-)


Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: juddi -Tomcat 6

2009-05-14 Thread André Warnier

Arundhati Chabukswar wrote:

Hi,

Can someone help me set up or give me directions to set up a juddi in the
Tomcat 6.0 server and provide directions to the dependancy files required.

Can't help you, but I'm always happy to see a new word appear on this 
forum.  What's a juddi ?

Don't tell me blogs and wiki etc.. are now already passé ?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: juddi -Tomcat 6

2009-05-14 Thread Michael A. Repucci
http://ws.apache.org/juddi/

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:16 PM, André Warnier a...@ice-sa.com wrote:

 Arundhati Chabukswar wrote:

 Hi,

 Can someone help me set up or give me directions to set up a juddi in the
 Tomcat 6.0 server and provide directions to the dependancy files required.

  Can't help you, but I'm always happy to see a new word appear on this
 forum.  What's a juddi ?
 Don't tell me blogs and wiki etc.. are now already passé ?

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: .html pages as .jsp pages

2009-05-14 Thread Robert Koberg


On May 14, 2009, at 4:02 PM, André Warnier wrote:


Ken Bowen wrote:
The point of dynamic jsp pages is to dynamically create pages on  
the fly based on information from the user.
What's the point of using jsp to dynamically create pages offline  
that you only serve statically?  Why not just

write them in html from the beginning?

+1
and I must say that I'm curious to see the answer.
:-)
Writing the pages with jsp is a lot more cool though.


The OP just seems to be using JSP as a scripting language to  
pregenerate static pages. I think there a better ways, but it doesn't  
seem too strange. You keep your common components separate (banner,  
footer, whatev). Way better than hand editing the same stuff over and  
over again.


To the OP, once you have taken down the JSPs, perhaps you could use  
something like Ant's globmapper to change the extension and FTP/SCP  
them to your server.


best,
-Rob


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Yes. That changed nothing. Still no catalina.out, still no ourapp.log.


Well, that'll teach you to do stupid things like that under Windows.

Seriously now, if this was one of my customers calling me to tell me the 
same story, I would ask them and what else did you do that you're not 
telling us ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 12:54 PM, Ken Bowen kbo...@als.com wrote:
 The point of dynamic jsp pages is to dynamically create pages on the fly
 based on information from the user.

Not necessarily...

 What's the point of using jsp to dynamically create pages offline that you
 only serve statically?  Why not just write them in html from the beginning?

I've done this before for a client using basic hosting where creating
a data-intensive site would have been painfully time-consuming, if
not flatly infeasible.

But with Java/JSP/JSTL, wham-bam-thank-you-ma'am, done.

A quick wget and there's your static site. Makes total sense.

YMMV :-)
-- 
Hassan Schroeder  hassan.schroe...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 1:22 PM, Robert Koberg r...@koberg.com wrote:

 To the OP, once you have taken down the JSPs, perhaps you could use
 something like Ant's globmapper to change the extension

No, as already pointed out, just add the *.html mapping to the JSP
servlet def in your app. No conversion necessary.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread Dave Filchak

Ken Bowen wrote:

Below...

On May 14, 2009, at 2:49 PM, Dave Filchak wrote:


ls -l /opt/java/bin/java
-rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java


Per my earlier message, this is (part of) your problem.  
/opt/java/bin/java is an executable, but what should be on your path 
is a directory where the executable can be found.  So 
/opt/java/bin/java should be shortened to /opt/java/bin on your path.

OK, my path now reads:

/opt/java/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1.6.0_13/bin:/root/bin

but still, when I run the exodus app, I get a Server unavailable error. 
Then, when I run netstat -o, it shows nothing of the ports I had set up 
previously (changed tomcat port to 8081 and the connector port to 8010). 
I still show a huge amount of connections on 8009, which is not even in 
the tomcat configuration anymore.


When I look at catalina.out it shows:

May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.net.BindException: Address already in usenull:8081

   at org.apache.catalina.connector.Connector.start(Connector.java:1138)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:531)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2124 ms


So, I think I want to remove all instances on java and tomcat and 
re-install.


Any suggestions about how to remove all of this stuff cleanly?

Dave






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: juddi -Tomcat 6

2009-05-14 Thread Security Management
Why don't you try the how-to for apache's?

http://wiki.apache.org/ws/jUDDI_HOW-TOs


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Thursday, May 14, 2009 4:16 PM
To: Tomcat Users List
Subject: Re: juddi -Tomcat 6

Arundhati Chabukswar wrote:
 Hi,
 
 Can someone help me set up or give me directions to set up a juddi in the
 Tomcat 6.0 server and provide directions to the dependancy files required.
 
Can't help you, but I'm always happy to see a new word appear on this 
forum.  What's a juddi ?
Don't tell me blogs and wiki etc.. are now already passé ?

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
gone through the process of completely uninstalling and reinstalling the
Tomcat packages, and it doesn't help. So now, not only does our application
not work on my local machine, but I can't figure out why because Tomcat
won't give me error messages. I think I'm going to give up on Tomcat
entirely ... crappy piece of software. I take it that you have nothing
useful to contribute to my problem?

Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:23 PM, André Warnier a...@ice-sa.com wrote:

 Michael A. Repucci wrote:

 Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

  Well, that'll teach you to do stupid things like that under Windows.

 Seriously now, if this was one of my customers calling me to tell me the
 same story, I would ask them and what else did you do that you're not
 telling us ?



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Help on tomcat configuration

2009-05-14 Thread JoshInWV

I am in the process of writing some web based software.  Tomcat is my server
I chose for the back end nuts and bolts because the software is written in
Java / JSP.  I have an OReilly book on tomcat, but it really lacks on realm
configuration and when talking about j_security_check (but of course so does
servlet spec 2.3)

In a nutshell we designed a program to be installed on a stand alone PC or
network.  We finished it and turned it over.  They came back to us and said,
well due to our fear of piracy, we now want to put it on a web server and
sell the service :-/.  So now the scope of the project shifted by some, but
what we have will run, just needs slightly modified.

Most of what I need to have happen is at the server level.  What do I need
to do to have one instance of tomcat running and have multiple copies of the
software running throughout the one server?  I know this gets into a realms
configuration issue, but I am not strong on that.

I thought about doing sub-domains with a dedicated instance under each
domain, however, I think that's terribly wasteful.

Any help would be greatly appreciated.

- Josh

I have a few questions if you all can make some time for me to answer them,
I would be most grateful!
-- 
View this message in context: 
http://www.nabble.com/Help-on-tomcat-configuration-tp23548536p23548536.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Basic Java questions

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: Re: Basic Java questions
 
 OK, my path now reads:
 
 /opt/java/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/us
 r/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/jdk1
 .6.0_13/bin:/root/bin

You shouldn't have a trailing slash on /opt/java/bin, although it probably 
doesn't hurt too much.

 Then, when I run netstat -o, it shows nothing of the ports I 
 had set up previously (changed tomcat port to 8081 and the 
 connector port to 8010).

Indicative that your Tomcat is not running.

 I still show a huge amount of connections on 8009, which is 
 not even in the tomcat configuration anymore.

Indicative that some *other* Tomcat is running.  What's the pid number for the 
connections?  Where is that process being executed from?  Kill it and delete 
the installation.

 start failed: java.net.BindException: Address already in usenull:8081

Another Tomcat (or some other process) is using that port.  Find it and get rid 
of it.

 So, I think I want to remove all instances on java and 
 tomcat and re-install.

You don't need to remove all instances of Java; just the ones you don't want to 
use.

 Any suggestions about how to remove all of this stuff cleanly?

Consult the package manager for your system.  If there isn't one, you're into a 
lot of find'ing and grep'ing.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Ken Bowen
Yes, but why the need to use the .jsp extension?  A static site would  
run just fine with everything as .html under

either Tomcat or httpd or 

On May 14, 2009, at 4:24 PM, Hassan Schroeder wrote:


On Thu, May 14, 2009 at 12:54 PM, Ken Bowen kbo...@als.com wrote:
The point of dynamic jsp pages is to dynamically create pages on  
the fly

based on information from the user.


Not necessarily...

What's the point of using jsp to dynamically create pages offline  
that you
only serve statically?  Why not just write them in html from the  
beginning?


I've done this before for a client using basic hosting where creating
a data-intensive site would have been painfully time-consuming, if
not flatly infeasible.

But with Java/JSP/JSTL, wham-bam-thank-you-ma'am, done.

A quick wget and there's your static site. Makes total sense.

YMMV :-)
--
Hassan Schroeder  hassan.schroe...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread Dave Filchak

Ken Bowen wrote:

Hard to say about everything.  But

/opt/java/bin/java

in your path is very suspicious.  Check whether that is in fact the 
executable itself by just trying to execute


/opt/java/bin/java

It might be that you need /opt/java/bin in the path instead. 

This has been fixed.
I also would cd to /opt/java/jdk1.6.0_13/bin and do an ls to see 
what's there.


the path is actually /opt/java/bin as java is a symlink to /opt/jdk1.6.0_13

-rwxr-xr-x  1 root root  52331 Mar  9 15:37 appletviewer
-rwxr-xr-x  1 root root  52216 Mar  9 15:37 apt
lrwxrwxrwx  1 root root 10 May  5 15:36 ControlPanel - ./jcontrol
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 extcheck
-rwxr-xr-x  1 root root   1080 Mar  9 15:41 HtmlConverter
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 idlj
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jar
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jarsigner
-rwxr-xr-x  1 root root  50810 Mar  9 15:37 java
-rwxr-xr-x  1 root root  52280 Mar  9 15:37 javac
-rwxr-xr-x  1 root root  52216 Mar  9 15:37 javadoc
-rwxr-xr-x  1 root root  52280 Mar  9 15:37 javah
-rwxr-xr-x  1 root root  52312 Mar  9 15:37 javap
-rwxr-xr-x  1 root root 104769 Mar  9 15:41 javaws
-rwxr-xr-x  1 root root  51971 Mar  9 15:37 jconsole
-rwxr-xr-x  1 root root   6347 Mar  9 15:41 jcontrol
-rwxr-xr-x  1 root root  52003 Mar  9 15:37 jdb
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jhat
-rwxr-xr-x  1 root root  52115 Mar  9 15:37 jinfo
-rwxr-xr-x  1 root root  52115 Mar  9 15:37 jmap
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jps
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jrunscript
-rwxr-xr-x  1 root root  52003 Mar  9 15:37 jsadebugd
-rwxr-xr-x  1 root root  52115 Mar  9 15:37 jstack
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jstat
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 jstatd
-rwxr-xr-x  1 root root   2551 Dec 11 14:14 jvisualvm
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 keytool
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 native2ascii
-rwxr-xr-x  1 root root  52219 Mar  9 15:37 orbd
-rwxr-xr-x  1 root root  52043 Mar  9 15:37 pack200
-rwxr-xr-x  1 root root  52363 Mar  9 15:37 policytool
-rwxr-xr-x  1 root root  52312 Mar  9 15:37 rmic
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 rmid
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 rmiregistry
-rwxr-xr-x  1 root root  51995 Mar  9 15:37 schemagen
-rwxr-xr-x  1 root root  52312 Mar  9 15:37 serialver
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 servertool
-rwxr-xr-x  1 root root  52219 Mar  9 15:37 tnameserv
-rwxr-xr-x  1 root root 186301 Mar  9 15:37 unpack200
-rwxr-xr-x  1 root root  51963 Mar  9 15:37 wsgen
-rwxr-xr-x  1 root root  51995 Mar  9 15:37 wsimport
-rwxr-xr-x  1 root root  51995 Mar  9 15:37 xjc

Dave


snip





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread Ken Bowen
Well, sometimes things hang around.  Maybe a conservative start would  
be to reboot your system and then examine things.  If everything looks  
quiescent, then try to start your exodus app and see what happens.


On May 14, 2009, at 4:26 PM, Dave Filchak wrote:


Ken Bowen wrote:

Below...

On May 14, 2009, at 2:49 PM, Dave Filchak wrote:


ls -l /opt/java/bin/java
-rwxr-xr-x  1 root root 50810 Mar  9 15:37 /opt/java/bin/java


Per my earlier message, this is (part of) your problem.  /opt/java/ 
bin/java is an executable, but what should be on your path is a  
directory where the executable can be found.  So /opt/java/bin/java  
should be shortened to /opt/java/bin on your path.

OK, my path now reads:

/opt/java/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/ 
usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/java/ 
jdk1.6.0_13/bin:/root/bin


but still, when I run the exodus app, I get a Server unavailable  
error. Then, when I run netstat -o, it shows nothing of the ports I  
had set up previously (changed tomcat port to 8081 and the connector  
port to 8010). I still show a huge amount of connections on 8009,  
which is not even in the tomcat configuration anymore.


When I look at catalina.out it shows:

May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol  
handler start failed: java.net.BindException: Address already in  
usenull:8081
  at org.apache.catalina.connector.Connector.start(Connector.java: 
1138)
  at  
org.apache.catalina.core.StandardService.start(StandardService.java: 
531)
  at  
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

  at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at  
sun 
.reflect 
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at  
sun 
.reflect 
.DelegatingMethodAccessorImpl 
.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
May 14, 2009 4:08:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2124 ms


So, I think I want to remove all instances on java and tomcat and re- 
install.


Any suggestions about how to remove all of this stuff cleanly?

Dave






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Basic Java questions

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: Re: Basic Java questions
 
 the path is actually /opt/java/bin as java is a symlink to
 /opt/jdk1.6.0_13

I'm not following that; please restate.  Also, what directory were you in when 
you did the ls:

 -rwxr-xr-x  1 root root  52331 Mar  9 15:37 appletviewer
 -rwxr-xr-x  1 root root  52216 Mar  9 15:37 apt
 lrwxrwxrwx  1 root root 10 May  5 15:36 ControlPanel - ./jcontrol
 -rwxr-xr-x  1 root root  51963 Mar  9 15:37 extcheck
 -rwxr-xr-x  1 root root   1080 Mar  9 15:41 HtmlConverter
 -rwxr-xr-x  1 root root  51963 Mar  9 15:37 idlj

snip

Whatever it was does look like the bin directory of a JDK.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Basic Java questions

2009-05-14 Thread André Warnier

Dave Filchak wrote:


So, I think I want to remove all instances on java and tomcat and 
re-install.


Any suggestions about how to remove all of this stuff cleanly?

I'm sorry to say, but I think that system is way past any attempt at 
doing things cleanly.


It looks like you have at least 3 versions of java on there, and who 
knows what uses them.


What about using the HP package manager (SAM ?) first, to see what's 
installed and what you can remove ?

And/or getting some expert local help ?

But we're getting a bit far from Tomcat here..

One more tidbit : from you previous post (mainly the bind error), it 
looks to me as if you are in fact trying to start *the same* Tomcat two 
times..

But don't ask me where that comes from.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: file type being blocked by IE

2009-05-14 Thread Caldarale, Charles R
 From: Brandon Steward [mailto:bstew...@jsu.edu]
 Subject: Re: file type being blocked by IE
 
 I've disabled the show friendly error pages.  Here's the 
 screenshot of the error.

Or not.  The list strips most attachments, including yours.

IE thinks it's the smartest thing on the planet, thereby justifying its rather 
rude behavior of ignoring both common sense and standards.  Consequently, you 
may be suffering from its refusal to download any items that have a no-cache 
header attached to them.  This usually happens to HTTPS transfers:
http://support.microsoft.com/?id=316431

But I think it can happen to any response with a no-cache header.  Use 
Wireshark or any of the myriad HTTP header monitors to see what's really coming 
over the line.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 1:43 PM, Ken Bowen kbo...@als.com wrote:
 Yes, but why the need to use the .jsp extension?  A static site would run
 just fine with everything as .html under
 either Tomcat or httpd or 

Missing the point -- we're talking about static *deployment* of a
dynamically *generated* site.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
gone through the process of completely uninstalling and reinstalling the
Tomcat packages, and it doesn't help. So now, not only does our application
not work on my local machine, but I can't figure out why because Tomcat
won't give me error messages. I think I'm going to give up on Tomcat
entirely ... crappy piece of software. I take it that you have nothing
useful to contribute to my problem?


Sorry, I got confused between your system and your colleague's.

I'll quote you :

--See life as it is, not as it appears to be.



But yes, I'll try some suggestions :
Under Ubuntu, your Tomcat is probably running under jsvc, which is a 
kind of wrapper which allows Tomcat to be started as non-root, but still 
use port 80 for instance if needed.
And it is probably also being launched by the script 
/etc/init.d/tomcatx.y. (where x.y is the version)
If you look in that file, you'll also probably find that it does some 
funny things with some logfiles, which normally should be found under 
/var/log/tomcatx.y., but which may just end up in one of the other 
logfiles in /var/log in this case.

If you did install this tomcat with the apt utility, then just do
- apt-get remove tomcatx.y
- apt-get purge tomcatx.y

Then, make sure that the java you have is a Sun Java, not gcj, and make 
it the default (update-alternatives java).

Then
- apt-get install tomcatx.y
and it should just magically run again.

(Under Ubuntu, you probably need to prefix all the above by sudo).

Alternatively, if you are going to be using this mainly for development, 
and you don't care if it is well-integrated with the rest of the Ubuntu 
package system, and you want a Tomcat layout a bit easier to understand 
than what the Debian and Ubuntu packagers do, you may want to download 
and install an official Tomcat from the Tomcat website.
That one installs under a single directory, usually /usr/local/tomcat or 
so. Then you have everything in one place, without symlinks etc..
The inconvenient is that you'll have to write your own system start/stop 
scripts etc..



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread David kerber

Michael A. Repucci wrote:

Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
gone through the process of completely uninstalling and reinstalling the
Tomcat packages, and it doesn't help. So now, not only does our application
not work on my local machine, but I can't figure out why because Tomcat
won't give me error messages. I think I'm going to give up on Tomcat
entirely ... crappy piece of software. I take it that you have nothing
useful to contribute to my problem?
  
Other than saying that Tomcat is not a crappy piece of software, and 
I've been using it for many years, I'm afraid I don't have any other 
suggestions.  Have you searched your HD to see if the logs are ending up 
somewhere other than where you were expecting them to?




Michael Repucci
(M) 718-288-4554
(W) 212-746-0462
mich...@repucci.org
http://michael.repucci.org/

--See life as it is, not as it appears to be.


On Thu, May 14, 2009 at 4:23 PM, André Warnier a...@ice-sa.com wrote:

  

Michael A. Repucci wrote:



Yes. That changed nothing. Still no catalina.out, still no ourapp.log.

 Well, that'll teach you to do stupid things like that under Windows.
  

Seriously now, if this was one of my customers calling me to tell me the
same story, I would ask them and what else did you do that you're not
telling us ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





  




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: .html pages as .jsp pages

2009-05-14 Thread Kevin Nash
File associations in eclipse are under
the Windows Menu - Preferences - General - Editors

-Original Message-
From: Dola Woolfe [mailto:dolac...@yahoo.com]
Sent: 14 May 2009 19:44
To: Tom Cat
Subject: .html pages as .jsp pages



Hi,

I need to give my jsp files the extension .html

1. How do I configure tomcat to treat .html files as .jsp files?

2. Off topic? How do I set up Eclipse so that .html files are opened with the 
same editor as .jsp files and give me all of the syntax highlighting, etc.

Many thanks in advance,

Dola


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat no longer writing to log files

2009-05-14 Thread Caldarale, Charles R
 From: michael.repu...@gmail.com [mailto:michael.repu...@gmail.com]
 Subject: Re: tomcat no longer writing to log files
 
 I think I'm going to give up on Tomcat entirely ... 
 crappy piece of software.

That's a pretty amazing attitude for somebody who admitted they screwed up and 
then blames a product that's used on about 60% of the app servers in the world. 
 Why would anyone bother to help you when you whine like that?

Regardless, before you throw the baby out with the bathwater, try installing an 
official Tomcat from tomcat.apache.org; the 3rd-party ones that come with many 
Linux distributions use symlinks to scatter bits and pieces of Tomcat all over, 
especially the log files.  It's highly likely you have destroyed those 
symlinks.  If you must use Ubuntu packages, you should be talking to Ubuntu 
support.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General errors in virtual host setup

2009-05-14 Thread Dave Filchak

André Warnier wrote:

Dave,

from the whole collection of recent messages, it very much looks to me 
as if you are effectively trying to run 2 Tomcats on this machine, and 
that they somehow conflict in terms of ports, maybe in terms of which 
applications they run, etc..
A while ago, you mentioned another server, for flash stuff.  Are you 
sure that this program is itsef not based on Tomcat for example ?
It may also be that you are trying to start the same Tomcat code 
twice, with different parameters (this is a technical possibility).


I don't know exactly what to tell you, but it seems that some things 
don't make sense otherwise.
In any case, the Connectors that you have activated in the server.xml, 
do not seem to match the ports that are really open for listening.


Maybe you should have a look at the ps and netstat options on your 
system, and proceed calmly and one bit at a time to find out what is 
running and using which ports.

Something like :
- turn off Apache
- turn off Tomcat
- turn off the other application supposedly using port 8088
Then do a
netstat -pan | grep LISTEN
(or maybe with -o as Chuck mentioned)
and save the result (keeping only the tcp-related lines)

Then turn on Apache, and do the same netstat command, and compare the 
result.  Any additional LISTEN port is probably Apache.

Save the result again.
- turn off Apache, and turn on the flash application
Do a netstat again and compare to the first one.
Etc...

When you have identified ports that really seem to belong to one or 
the other process consistently, then it is possible, with the 
appropriate options of netstat and ps, to find out which program is 
really running, that uses these ports.



The basic principle is this : it is not possible for two distinct 
processes (Tomcat, Apache, other app), to both have the same port open 
for listening (that's what the grep LISTEN is about above).
The first one that opens the port wins, and the second one trying to 
open the same port will get an error of the kind cannot bind.. port 
already in use (and that program will generally then refuse to even 
start)(but not necessarily; depending on the program, it may still 
run, in some cramped way; but Tomcat will probably not).


It may be that you installed Tomcat once, then de-installed it, then 
re-installed it in a new location but without removing first 
everything from the first one, etc.. or something of the kind.
I don't now exactly what is going on, but something is at the moment 
not clear, and it makes it almost impossible to help you, because when 
you access a given URL on a given port, we don't even know what 
process is really answering (or not).


OK, here is my report in response to all of this.

I shut down tomcat, red5 and apache. Issued a killall java (a couple of 
times)

Issued the command netstat -pan | grep LISTEN | grep tcp
Verified that none of the ports that I expect (in relation to this 
problem I am having) were showing up.
Started apache and ran the command again and correctly saw httpd show up 
listening on port 80 and 443.

shutdown apache
started red5 and show it show up on ports 8088 and 5080 (note these are 
not interfering with tomcat.)

killed red5 and started tomcat
Lo and behold, there were all my ports I expect for tomcat: 8081, 8005, 
8010, 8011

Started apache and still everything looked fine.
Finally, started red5 and still all looks correct. Now my site/app works 
again (well the web portion of it at least)


So, it appears to me that the server was just sort of holding on to old 
connections that were getting in the way of each other. Probably not a 
good description but that is what it looks like. All those CLOSE_WAIT 
connections on 8009 have now disappeared as well.


So I suppose this is a good step forward ... yes?

Dave



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: General errors in virtual host setup

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: Re: General errors in virtual host setup
 
 So I suppose this is a good step forward ... yes?

Yes, but as we mentioned before, the problem may come back on the next reboot.  
It wouldn't surprise me at all that there's some other Tomcat installed on that 
box, and it's started automatically upon boot.  You should be able to test that 
by rebooting and running netstat; if those ports suddenly become active again, 
you'll need to track down the rogue Tomcat and permanently disable it 
(terminate with extreme prejudice, as they say).

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Dola Woolfe

Exactly right.

I produce my static content programmatically.
Many pages are too complex to be generated otherwise.
Also, I get to write java not html.
When I want to change a font, I do it in one place not 1000 places.

--- On Thu, 5/14/09, Hassan Schroeder hassan.schroe...@gmail.com wrote:

 From: Hassan Schroeder hassan.schroe...@gmail.com
 Subject: Re: .html pages as .jsp pages
 To: Tomcat Users List users@tomcat.apache.org
 Date: Thursday, May 14, 2009, 5:04 PM
 On Thu, May 14, 2009 at 1:43 PM, Ken
 Bowen kbo...@als.com
 wrote:
  Yes, but why the need to use the .jsp extension?  A
 static site would run
  just fine with everything as .html under
  either Tomcat or httpd or 
 
 Missing the point -- we're talking about static
 *deployment* of a
 dynamically *generated* site.
 
 -- 
 Hassan Schroeder  hassan.schroe...@gmail.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Robert Koberg


On May 14, 2009, at 5:37 PM, Dola Woolfe wrote:



Exactly right.

I produce my static content programmatically.
Many pages are too complex to be generated otherwise.
Also, I get to write java not html.
When I want to change a font, I do it in one place not 1000 places.


well, that should be done in CSS :)




--- On Thu, 5/14/09, Hassan Schroeder hassan.schroe...@gmail.com  
wrote:



From: Hassan Schroeder hassan.schroe...@gmail.com
Subject: Re: .html pages as .jsp pages
To: Tomcat Users List users@tomcat.apache.org
Date: Thursday, May 14, 2009, 5:04 PM
On Thu, May 14, 2009 at 1:43 PM, Ken
Bowen kbo...@als.com
wrote:

Yes, but why the need to use the .jsp extension?  A

static site would run

just fine with everything as .html under
either Tomcat or httpd or 


Missing the point -- we're talking about static
*deployment* of a
dynamically *generated* site.

--
Hassan Schroeder  hassan.schroe...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
Seems like a bit of animosity toward Tomcat has finally helped me make
progress, mostly because it got all you gurus to actually explain a bit of
how it works, and how it's packaged, all concepts I didn't understand. I'm a
scientist, not a programmer. I'm new to Ubuntu and Tomcat. My colleagues
have been completely unhelpful in this process. It works on their systems,
so they've just left me to struggle on my own.

My frustration is further fueled by the fact that the web site that our
application will soon handle (http://neuroanalysis.org/toolkit/) is working
just fine as static html; it doesn't change much, and most of the pages (not
viewable externally) are generated automatically from code, using m2html or
doxygen. But now they want me to integrate this site into the JSP format
seen at the root (http://neuroanalysis.org/), despite the fact that I have
zero experience with Tomcat, Java, or JSP, and nearly no web application
development experience.

It would have been nice if Tomcat just worked, out of the box, but it took
me a couple days just to get it up and running. Now Tomcat works, at least
the default page and the example webapps, but the application that my
colleagues built won't work. This is their fault, as far as I'm concerned,
yet there's nothing I can do to force them to improve what is probably
sloppy code on their part.

So I'm just looking for some help. Sorry to insult Tomcat, but thanks for
the useful feedback. I'll work on the suggestions and let you know if I
can't make any progress.

:) Michael


RE: Tomcat ReadTimout on Http post

2009-05-14 Thread Caldarale, Charles R
 From: czeno2002 [mailto:czeno2...@yahoo.com]
 Subject: Tomcat ReadTimout on Http post
 
 I'm experiencing a really ugly readtimout problem in the production
 system started a couple of days ago. The main problem is that there
 is no way to reproduce it at all and it happens only on the production
 boxes aprox 5 times at every hour.

That sounds like it's reproducible to me - you just have to wait a bit.

 Does somebody has some ideas ?

Does the Cisco box have any means of logging an hour's worth of traffic?  If 
not, can you enable the AccessLogValve in each Tomcat?

What generates the POSTs?  If it's JavaScript on the page, is it possible it's 
broken under some odd conditions?  Is it possible that some users are 
double-clicking some button on the browser, causing a request to be fired off, 
then quickly abandoned for another?

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



Re: tomcat no longer writing to log files

2009-05-14 Thread Michael A. Repucci
On Thu, May 14, 2009 at 5:11 PM, André Warnier a...@ice-sa.com wrote:

 If you did install this tomcat with the apt utility, then just do
 - apt-get remove tomcatx.y
 - apt-get purge tomcatx.y

 Then, make sure that the java you have is a Sun Java, not gcj, and make it
 the default (update-alternatives java).
 Then
 - apt-get install tomcatx.y
 and it should just magically run again.


Hmm ... well now I've gone and made things worse again. André's advice
sounded good, but I'd basically already done this using the Synapic Package
Manager, and it didn't help. So I decided, foolishly, to take it one step
farther. I removed, and purged, then searched the system for anything Tomcat
related, and deleted that stuff too. Then when I reinstalled, Tomcat didn't
get reinstalled under /etc nor /etc/init.d, and it didn't get started
automatically as it had before. So is there some way to auto-recreate those
magic startup scripts? I know I could just start it manually, or create the
scripts myself, but they used to be there before I stupidly removed them.
How do I get them back?

Sad, tired, and frustrated. I'm going home.

:( Michael


RE: tomcat no longer writing to log files

2009-05-14 Thread Martin Gainty

Tomcat is an aggregation of well-tested apache components
could you elaborate a bit more on your implementation of either log4j or 
commons-logging?
and please read the Tomcat logging tutorial
http://www.mbaworld.com/docs/logging.html 
incidentally log4j specifies log4j.appender.R.File as in this log4j.properties 
file
 log4j.appender.R.File=${catalina.home}/logs/tomcat.log and commons-logging 
would handle the File specification as
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
HTH
Martin Gainty 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/Note de 
déni et de confidentialité
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Thu, 14 May 2009 16:50:02 -0400
 From: dcker...@verizon.net
 To: users@tomcat.apache.org
 Subject: Re: tomcat no longer writing to log files
 
 Michael A. Repucci wrote:
  Well, actually, I did this stupid thing under Ubuntu Linux. I've even now
  gone through the process of completely uninstalling and reinstalling the
  Tomcat packages, and it doesn't help. So now, not only does our application
  not work on my local machine, but I can't figure out why because Tomcat
  won't give me error messages. I think I'm going to give up on Tomcat
  entirely ... crappy piece of software. I take it that you have nothing
  useful to contribute to my problem?

 Other than saying that Tomcat is not a crappy piece of software, and 
 I've been using it for many years, I'm afraid I don't have any other 
 suggestions.  Have you searched your HD to see if the logs are ending up 
 somewhere other than where you were expecting them to?
 
 
  Michael Repucci
  (M) 718-288-4554
  (W) 212-746-0462
  mich...@repucci.org
  http://michael.repucci.org/
 
  --See life as it is, not as it appears to be.
 
 
  On Thu, May 14, 2009 at 4:23 PM, André Warnier a...@ice-sa.com wrote:
 

  Michael A. Repucci wrote:
 
  
  Yes. That changed nothing. Still no catalina.out, still no ourapp.log.
 
   Well, that'll teach you to do stupid things like that under Windows.

  Seriously now, if this was one of my customers calling me to tell me the
  same story, I would ask them and what else did you do that you're not
  telling us ?
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
  
 

 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

RE: tomcat no longer writing to log files

2009-05-14 Thread Caldarale, Charles R
 From: michael.repu...@gmail.com [mailto:michael.repu...@gmail.com]
 Subject: Re: tomcat no longer writing to log files
 
 Then when I reinstalled, Tomcat didn't get reinstalled under 
 /etc nor /etc/init.d, and it didn't get started automatically
 as it had before.

It wasn't clear to me whether you used a repackaged Tomcat this time, or 
downloaded a real one from tomcat.apache.org.  If the latter, the scripts are 
in Tomcat's bin directory, under the names startup.sh and shutdown.sh.  If you 
used a 3rd-party repackaged version, there's no telling where they might be.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread André Warnier

Dola Woolfe wrote:

Exactly right.

I produce my static content programmatically.
Many pages are too complex to be generated otherwise.
Also, I get to write java not html.
When I want to change a font, I do it in one place not 1000 places.


Allright, explanation accepted and makes sense.
;-)
(We see all kinds on this forum, let me tell ya)

Now just as an idea : leaving everything as it is, apparently when you 
download those pages via wget, you get them named as *.jsp, but they are 
otherwise ok, yes ?
Would not the simplest way in that case be, to write a simple shell 
script that goes through this hierarchy of files, and just renames them 
to *.html ?
I would bet that for a shell script specialist, that would be a less 
than 5-line script or so.

Or does that screw up inner links or something ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-14 Thread André Warnier

Michael A. Repucci wrote:

Seems like a bit of animosity toward Tomcat has finally helped me make
progress, mostly because it got all you gurus to actually explain a bit of
how it works, and how it's packaged, all concepts I didn't understand. I'm a
scientist, not a programmer. I'm new to Ubuntu and Tomcat. My colleagues
have been completely unhelpful in this process. It works on their systems,
so they've just left me to struggle on my own.


No wonder, if you're always grouchy like that.



My frustration is further fueled by the fact that the web site that our
application will soon handle (http://neuroanalysis.org/toolkit/) is working
just fine as static html; it doesn't change much, and most of the pages (not
viewable externally) are generated automatically from code, using m2html or
doxygen. But now they want me to integrate this site into the JSP format
seen at the root (http://neuroanalysis.org/), despite the fact that I have
zero experience with Tomcat, Java, or JSP, and nearly no web application
development experience.


Life is tough sometimes.  We empathise.


It would have been nice if Tomcat just worked, out of the box, but it took
me a couple days just to get it up and running. 


I hesitate to tell you this, considering the possible nefarious 
additional effect on your mood, but for most people it takes only a few 
minutes.
(I'm talking mostly of programmers though, don't really know about 
scientists).


Now Tomcat works, at least

the default page and the example webapps, but the application that my
colleagues built won't work. This is their fault, as far as I'm concerned,
yet there's nothing I can do to force them to improve what is probably
sloppy code on their part.


You could try your recipe of being rude to them also, it may work too.


So I'm just looking for some help. Sorry to insult Tomcat, but thanks for
the useful feedback. I'll work on the suggestions and let you know if I
can't make any progress.

:) Michael


:) André



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



General config errors

2009-05-14 Thread Dave Filchak
Further to my ongoing troubles, I decided to reinstall tomcat and java. 
Then I configured a single default host which basically ran the default 
apps/examples that come with tomcat, using the default tomcat port of 
8080 and the connector port of 8009. That is all good. However, every 
time I add a second host to server.xml, it kills the connector port. I 
still have the shutdown port on 8005 and the tomcat port on 8080 but the 
connector port on 8009 disappears and the new port for the second host 
is not there either.


Any ideas?

Dave

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: General config errors

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: General config errors
 
 Further to my ongoing troubles, I decided to reinstall tomcat and java.

From where?  The Tomcat web site, or a 3rd-party repackage?

 Then I configured a single default host 

Why did you have to change anything for that?  There's already one in the 
default configuration.

 every time I add a second host to server.xml, it kills 
 the connector port.

What does kills the connector port mean?  I've never seen an error message or 
log entry with those words in it.

 the connector port on 8009 disappears

Disappears from what?

 the new port for the second host is not there either.

Hosts don't have ports, Connectors do.  All Hosts within an Engine 
share all the Connectors for that Engine.

 Any ideas?

Post your server.xml so we can look at it.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General config errors

2009-05-14 Thread Dave Filchak

Caldarale, Charles R wrote:


From where?  The Tomcat web site, or a 3rd-party repackage?
  

tomcat website/
  
every time I add a second host to server.xml, it kills 
the connector port.



What does kills the connector port mean?  I've never seen an error message or 
log entry with those words in it.
  
Once the default host was running, I issued: netstat -pan | grep LISTEN 
| grep tcp and it showed java listening on port 8005, 8009 and 8080 ... 
all default.
  

the connector port on 8009 disappears



Disappears from what?
  
When I add the second host (the exodus app) and restart tomcat and run 
netstat -pan | grep LISTEN | grep tcp again, port 8009 no longer shows 
up and neither does the new port for the second connector on 8010. 
Happens consistently. And it should be noted for those that feel there 
is something else running on this machine i.e. another install or two of 
tomcat or red5 server, I have killed red5 and no other java entry shows 
up under netstat except the ones I expect.
  

the new port for the second host is not there either.



Hosts don't have ports, Connectors do.  All Hosts within an Engine share all the 
Connectors for that Engine.

  

yes ... mis-stated. Sorry.

Any ideas?



Post your server.xml so we can look at it.
  

DEFAULT: (this one works)

?xml version='1.0' encoding='utf-8'?

Server port=8005 shutdown=SHUTDOWN

 !--APR library loader. Documentation at /docs/apr.html --
 Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /
 !--Initialize Jasper prior to webapps are loaded. Documentation at 
/docs/jasper-howto.html --

 Listener className=org.apache.catalina.core.JasperListener /
 !-- JMX Support for the Tomcat server. Documentation at 
/docs/non-existent.html --
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /


 GlobalNamingResources
   !-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
   --
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
 /GlobalNamingResources
 Service name=Catalina
   Connector port=8080 protocol=HTTP/1.1
  connectionTimeout=2
  redirectPort=8443 /
   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

   Engine name=Catalina defaultHost=localhost

 !-- This Realm uses the UserDatabase configured in the global JNDI
  resources under the key UserDatabase.  Any edits
  that are performed against this UserDatabase are immediately
  available for use by the Realm.  --
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

 !-- Define the default virtual host
  Note: XML Schema validation will not work with Xerces 2.2.
  --
 Host name=localhost  appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
 /Host
   /Engine
 /Service
/Server

DEFAULT workers.properties

worker.list=rosewood

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#

worker.rosewood.type=ajp13
worker.rosewood.host=localhost
worker.rosewood.port=8009



?xml version='1.0' encoding='utf-8'?

Server port=8005 shutdown=SHUTDOWN

 !--APR library loader. Documentation at /docs/apr.html --
 Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /
 !--Initialize Jasper prior to webapps are loaded. Documentation at 
/docs/jasper-howto.html --

 Listener className=org.apache.catalina.core.JasperListener /
 !-- JMX Support for the Tomcat server. Documentation at 
/docs/non-existent.html --
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /


 GlobalNamingResources
   !-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
   --
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
 /GlobalNamingResources
 Service name=Catalina
   Connector port=8080 protocol=HTTP/1.1
  connectionTimeout=2
  redirectPort=8443 /
   !-- Define an AJP 1.3 Connector on port 8009 --
   Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

  !-- Define an AJP 1.3 Connector on port 8010 --
   Connector port=8010 protocol=AJP/1.3 redirectPort=8443 /

   

RE: General config errors

2009-05-14 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net]
 Subject: Re: General config errors
 
 When I add the second host (the exodus app) and restart tomcat and run
 netstat -pan | grep LISTEN | grep tcp again, port 8009 no longer shows
 up and neither does the new port for the second connector on 8010.

Take out the greps and just eyeball the raw netstat output.  See if those ports 
show up in some other condition.

 I have killed red5 and no other java entry shows
 up under netstat except the ones I expect.

What can you see in ps output?

I don't see anything wrong with the second server.xml, but maybe someone who 
hasn't been in bloody meetings most of the day might be able to catch 
something.  Can't comment on the mod_jk config, since I don't use httpd.

Can you access the exodus webapp via http://exodus.zuka.net:8080, or haven't 
you deployed it yet?

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: .html pages as .jsp pages

2009-05-14 Thread Hassan Schroeder
On Thu, May 14, 2009 at 3:52 PM, André Warnier a...@ice-sa.com wrote:

 Now just as an idea : leaving everything as it is, apparently when you
 download those pages via wget, you get them named as *.jsp, but they are
 otherwise ok, yes ?

No, because if you develop under a .jsp suffix, all your links point to
*.jsp pages. So you would have to rename *and* change all internal
links -- every time you make a change and have to re-fetch.

OTOH, it's a small *one-time* change to your web.xml, so why do
anything else?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: file type being blocked by IE

2009-05-14 Thread Brandon Steward

I found this work around.  You can add this to the webapp's xml config.

Valve className=org.apache.catalina.authenticator.FormAuthenticator
 disableProxyCaching=false /

Thanks for everybody's help,
Brandon

Caldarale, Charles R wrote:

From: Brandon Steward [mailto:bstew...@jsu.edu]
Subject: Re: file type being blocked by IE

I've disabled the show friendly error pages.  Here's the 
screenshot of the error.



Or not.  The list strips most attachments, including yours.

IE thinks it's the smartest thing on the planet, thereby justifying its rather 
rude behavior of ignoring both common sense and standards.  Consequently, you 
may be suffering from its refusal to download any items that have a no-cache 
header attached to them.  This usually happens to HTTPS transfers:
http://support.microsoft.com/?id=316431

But I think it can happen to any response with a no-cache header.  Use 
Wireshark or any of the myriad HTTP header monitors to see what's really coming 
over the line.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How to make request parameters available to a login.jsp?

2009-05-14 Thread Sid Sidney
The more I think about it, this is definitely a bug. The reason I think that is 
because when the request is via a get the request parameters are available. 
However, if the request is via a post the request parameters are not 
available.   I'm going to submit this a a bug.

--- On Wed, 5/6/09, Gregor Schneider rc4...@googlemail.com wrote:

From: Gregor Schneider rc4...@googlemail.com
Subject: Re: How to make request parameters available to a login.jsp?
To: Tomcat Users List users@tomcat.apache.org
Date: Wednesday, May 6, 2009, 2:56 PM

I've suggested a patch to issues.apache.org which might be helpful if
Sid wants to implement his own Valve.

My patch is a new valve, which diverts the call to a pre-defined URL
if j_security_check is called (I had to circumvent the fact that after
j_security_check Tomcat is always forwarding to the last request being
stored - that doesn't work when dealing i.e. with frames.

The benefit for the OP:

Since it's a Valve, it's pretty easy to evaluate the url originally
requested - not sure, if the parameters are in there but I believe so.

Since this Valve is pretty straight forward and lean, it shouldn't be
a problem to adapt it so that it might meet Sid's needs.

You can find the patch here:

https://issues.apache.org/bugzilla/show_bug.cgi?id=46902

Cheers

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: .html pages as .jsp pages

2009-05-14 Thread Dola Woolfe

Screws up the inner links!

--- On Thu, 5/14/09, André Warnier a...@ice-sa.com wrote:

 From: André Warnier a...@ice-sa.com
 Subject: Re: .html pages as .jsp pages
 To: Tomcat Users List users@tomcat.apache.org
 Date: Thursday, May 14, 2009, 6:52 PM
 Dola Woolfe wrote:
  Exactly right.
  
  I produce my static content programmatically.
  Many pages are too complex to be generated otherwise.
  Also, I get to write java not html.
  When I want to change a font, I do it in one place not
 1000 places.
  
 Allright, explanation accepted and makes sense.
 ;-)
 (We see all kinds on this forum, let me tell ya)
 
 Now just as an idea : leaving everything as it is,
 apparently when you download those pages via wget, you get
 them named as *.jsp, but they are otherwise ok, yes ?
 Would not the simplest way in that case be, to write a
 simple shell script that goes through this hierarchy of
 files, and just renames them to *.html ?
 I would bet that for a shell script specialist, that would
 be a less than 5-line script or so.
 Or does that screw up inner links or something ?
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: General config errors

2009-05-14 Thread Dave Filchak

Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: Re: General config errors

When I add the second host (the exodus app) and restart tomcat and run
netstat -pan | grep LISTEN | grep tcp again, port 8009 no longer shows
up and neither does the new port for the second connector on 8010.



Take out the greps and just eyeball the raw netstat output.  See if those ports 
show up in some other condition.
  
I have them all showing up at this point. However, when I view the 
exodus app, I get a blank page.
  

I have killed red5 and no other java entry shows
up under netstat except the ones I expect.



What can you see in ps output?
  

Really just a single java instance. Not much else of interest to this

I don't see anything wrong with the second server.xml, but maybe someone who 
hasn't been in bloody meetings most of the day might be able to catch 
something.  Can't comment on the mod_jk config, since I don't use httpd.

Can you access the exodus webapp via http://exodus.zuka.net:8080, or haven't 
you deployed it yet?
  
I have deployed it several times and eventually, most often after a 
tomcat restart, I lose the ports. I know this is why Andre feels that 
there is another tomcat instance running on my machine but I just do not 
see it.


Thank you all for your patience today. I am way too tired to keep going 
so will have to continue tomorrow. Thanks again.


Dave


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-14 Thread Pantvaidya, Vishwajit
Since I did not get any responses to this, just wanted to ask - did I post this 
to the wrong list and should I be posting this to the tomcat developers list 
instead?


-Original Message-
From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] 
Sent: Thursday, May 14, 2009 11:29 AM
To: Tomcat Users List
Subject: RE: Running out of tomcat threads - why many threads in RUNNABLE stage 
even with no activity

I set connectionTimeout in server.xml to 60 and now the RUNNABLE threads go 
back to WAITING stage after that time.

But our other servers which are running the same configuration, same webapp and 
do not have connectionTimeout set in server.xml, do not show so many RUNNABLE 
threads, but more WAITING threads. So looks like the threads are getting 
recycled properly there.


Any idea why could this be? Could it be the OS (all servers run Linux but I do 
not know which flavors/versions)?



-Original Message-
From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] 
Sent: Wednesday, May 13, 2009 2:28 PM
To: users@tomcat.apache.org
Subject: Running out of tomcat threads - why many threads in RUNNABLE stage 
even with no activity

My setup is tomcat 5.5.17 + mod_jk 1.2.15 + httpd 2.2.2. I am using AJP1.3.
Every 2-3 days with no major load, tomcat throws the error: SEVERE: All 
threads (200) are currently busy, waiting...

I have been monitoring my tomcat TP-Processor thread behavior over extended 
time intervals and observe that:
- even when there is no activity on the server, several TP-Processor threads 
are in RUNNABLE state while few are in WAITING state
- RUNNABLE threads stack trace shows java.lang.Thread.State: RUNNABLE at 
java.net.SocketInputStream.socketRead0(Native Method)...
- WAITING thread stack trace shows java.lang.Thread.State: WAITING on 
org.apache.tomcat.util.threads.threadpool$controlrunna...@53533c55
- tomcat adds 4 new TP-Processor threads when a request comes in and it can 
find no WAITING threads

So I conclude that my tomcat is running out of threads due to many threads 
being in RUNNABLE state when actually they should be in WAITING state. Is that 
happening because of the socket_keepalive in my workers.properties shown below?
Why are threads added in bunches of 4 - is there any way to configure this?

My workers config is:

Worker...type=ajp13
Worker...cachesize=10
Worker...cache_timeout=600
Worker...socket_keepalive=1
Worker...recycle_timeout=300
 
Earlier posts related to this issue on the list seem to recommend tweaking:
- several timeouts
- JkOptions +DisableReuse

I am planning to do the following to resolve our problem:
- upgrade jk to latest version - e.g. 1.2.28
- replace recycle_timeout with connection_pool_timeout
- add connectionTimeout in server.xml
- add JkOptions +DisableReuse

Please let me know if this is okay or suggestions if any.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Difference between running bootstrap.jar and catalina.bat

2009-05-14 Thread Jan Horký
Hi,

I got the following error:

15.5.2009 7:10:16
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
contextInitialized
SEVERE: WSSERVLET11: failed to parse runtime descriptor:
java.lang.VerifyError: (class: com/sun/xml/ws/model/AbstractSEIModelImpl,
method: createJAXBContext signature: ()Lcom/sun/xml/bind/api/JAXBRIContext;)
Incompatible argument to function java.lang.VerifyError: (class:
com/sun/xml/ws/model/AbstractSEIModelImpl, method: createJAXBContext
signature: ()Lcom/sun/xml/bind/api/JAXBRIContext;) Incompatible argument
to function
at
com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:215)
at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:322)
at
com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:188)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at
com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
at
com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
15.5.2009 7:10:16 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart


It has to be some classpath mismatch(java -jar bootstrap.jar start works
fine) but I can't find what. The libraries in this app are bit complicated.
There is custom tomcat realm for authentication (this is the thing why is
some libraries located in tomcat\lib) some custom listeners and so on. I
need to override somehow the jaxb1 api which I'm using for older custom
component in application.
I appreciate your time, thanks for answer, Jan.


On Thu, May 14, 2009 at 8:56 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jan,

 On 5/14/2009 5:05 AM, Jan Horký wrote:
  Hi, thank you for replay.
 
  I tried to set various options in strartup.bat but It didn't work. It
  worked only if I ran java -jar bootstrap.jar start command from
  commnad line in tomcat\bin\. The thing which I'm interested in is
  which options (variables) are used when I start Tomcat this way (java
  -jar boot...). Than I can try to set service (windows registry, good
  to know, thx) same way as it's set when I'm using bootstrap class to
  tomcat run.

 When you say it doesn't work, what /does/ happen? Log files? Console
 output?

 I suspect you've messed-up Tomcat's lib directory and there are odd
 dependencies not being fulfilled. You shouldn't have put anything into
 Java's lib directory. You should probably also not have put anything
 into Tomcat's lib directory. You should deploy the application-specific
 JAR files into the webapp's WEB-INF/lib directory.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/