Apache Tribes:Is it suitable for P2P Applications?

2010-11-18 Thread hdiakos

Hello all :).
First of all excuse me of any silly questions I might make in this  
list.As a devout supporter of Tomcat,and having made extensive use of  
it (:D), I've taken notice lately of the Apache Tribes  
framework.Lately,we had developed a P2P application with JXTA but  
looking to better alternatives we've seen characteristics in Apache  
Tribes that are very attractive  tempting(at least in the  
descriptions presented in the web page).However,we would like some  
official answer to see whether these features are what we should  
expect.So,let me get straight to the point:


-Does Apache Tribes support message parallelism/multithreading?
-Is it scalable?Does it support a limited number of peers or it  
depends on machinery hardware/equipment?

-What about feedback?
-In addition,could we retrieve statistics and information about the  
topology of the network when nodes are built via the framework(even if  
these information have to be segregated/collected by us;I am asking  
if it is possible)?


Most of my questions seem answered in this page:
http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html
However,many links are broken(Javadocs, setup guide shows blank  
page)and I can't get much more information about it.In addition,I have  
doubts if your community still actively supports it.Do you think I  
should look elsewhere?


I do hope for positive answers, as the feature overview seems  
fantastic to me(parallel delivery,message feedback).As far as  
peer-nodes are concerned we've succeeded with ~400-500 peers alive  
together(quite a modicum quantity for P2P networks).


Hercules Diakos


This message was sent using IMP, the Internet Messaging Program.


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



Assistance determining cause of httpd error log entries

2010-11-18 Thread David Dabbs
Hello.

I have a number of error_log entries I’m trying to resolve.

We're fronting a Tomcat 6.0.29 instance with httpd 2.2.15 via mod_proxy_ajp.


My suspicion is that we get requests with too-long request uri and or
Referrer and this is gumming up the works for AJP protocol marshalling.

Would a change to mod_proxy_http solve the issues? I’d rather not do that if
there’s some Apache/Tomcat connector conf change I can make.



FWIW, here’s my connector def:



!-- Define an AJP 1.3 Connector on port 8009 --

Connector port=8009 protocol=AJP/1.3 maxThreads=2048
minSpareThreads=50 maxSpareThreads=200 enableLookups=false/





Thank you,



David







These happen together

[Wed Nov 17 16:54:49 2010] [error] ajp_msg_append_cvt_string():
BufferOverflowException 4 3129
[Wed Nov 17 16:54:49 2010] [error] ajp_marshal_into_msgb: Error appending
the query string
[Wed Nov 17 16:54:49 2010] [error] ajp_send_header: ajp_marshal_into_msgb
failed
[Wed Nov 17 16:54:49 2010] [error] (120001)APR does not understand this
error code: proxy: AJP: request failed to 127.0.0.1:8009 (localhost)



Some are like this:
[Wed Nov 17 18:25:10 2010] [error] ajp_msg_append_cvt_string():
BufferOverflowException 4 8186
[Wed Nov 17 18:25:10 2010] [error] ajp_marshal_into_msgb: Error appending
attribute AJP_REMOTE_PORT=50872
[Wed Nov 17 18:25:10 2010] [error] ajp_send_header: ajp_marshal_into_msgb
failed
[Wed Nov 17 18:25:10 2010] [error] (120001)APR does not understand this
error code: proxy: AJP: request failed to 127.0.0.1:8009 (localhost)



 [Wed Nov 17 06:16:42 2010] [error] [client 128.23.54.92] proxy: error
processing end, referer: http://foo.bar.com/


[Wed Nov 17 06:00:04 2010] [error] [client 76.248.240.226] proxy: error
processing body. Client aborted connection.,
referer: http://my.horoscope.com/astrology/free-daily-horoscope-virgo.html


[Wed Nov 17 06:02:57 2010] [error] [client 76.88.35.55] request failed:
error reading the headers

[Wed Nov 17 06:01:53 2010] [error] [client 98.247.17.178] request failed:
error reading the headers,
referer: http://politifact.com/truth-o-meter/



This one is clear, is there a conf change I can make?

[Wed Nov 17 06:08:14 2010] [error] [client 216.220.11.62] request failed:
URI too long (longer than 8190)


Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Pid
On 17/11/2010 22:41, André Warnier wrote:
 Typical Java thinking..
 Sure, let's pull in another 15 classes..
 Gotta use those GB of RAM for something..
 Why do simple when complicated would do just as well, he ?

That doesn't make sense*.

Leon's trying to avoid using more RAM.  The JMX method pulls in one
class, uses another indirectly  generates a String.  Hardly a memory
intensive operation.

Splitting a String isn't exactly elegant, but it _is_ cross platform
AFAICT  starting processes appears to be problematic, so it's the best
of a bad bunch IMHO.


p

*  But I know it's an excuse for a reply with a Perl solution ;)


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


configuring https enabled tomcat using user and CA certificate

2010-11-18 Thread Abhishek Srivastava
I have both user and CA certificate and trying to import into keystore
newkeystore file

*C:\keytool -import -alias root -keystore newkeystore -trustcacerts -file
cacert.pem*


*C:\keytool -import -alias tomcat -keystore newkeystore -file usercert.pem*



then I have configured this newkeystore in *tomcat6.0* server.xml
file...given the contents..

*Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
   maxThreads=150 scheme=https secure=true
   clientAuth=false sslProtocol=TLS
   keystoreFile=C:/newkeystore
   keystorePass=welcome
   keyStoreType=JKS
   keyAlias=root
  /*
and also tried with giving alias keyAlias=tomcat

we are facing the error in starting of tomcat


SEVERE: Error initializing endpoint
java.io.IOException: Alias name root does not identify a key entry
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:446)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:409)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:125)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
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.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
18 Nov, 2010 7:34:16 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.io.IOException: Alias name root does not identify a key entry
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
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.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)




-- 
Thanks  Regards,
Abhishek Srivastava
+919731897198


RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
Thanks Chris,

After messing around with JNDI yesterday I came to the same conclusion that 
Tomcat is doing some isolation and I can understand why. I will look into the 
JMX approach you suggest as I am running out of options. If That doesn't 
provide a solution I think I will have to deploy our connection pool logic to 
the shared 'tomcat/lib' directory where static collections will be available to 
all contexts. Do you see any issues with deploying code within the lib 
directory? 

Many thanks for your help
Rob


 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: 17 November 2010 16:44
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Rob,
 
 On 11/17/2010 7:07 AM, Rob Gregory wrote:
  Is it possible to just store my existing collection of datasources in
  some global context?
 
  I.e.
  initCtx = new InitialContext();
  Context envCtx  = (Context)initCtx.lookup(java:/comp/env);
  envCtx.bind(datasource_live, objLiveDatasource);
  envCtx.bind(datasource_test, objTestDatasource);
 
  or something along those lines?
 
 The above isn't going to work because Tomcat provides webapp isolation
 in the JNDI space.
 
 You should look into the documentation for Tomcat's JMX beans: I'm sure
 there is a way to use those to create on-the-fly DataSources (really
 DataSourceFactories I think) using the mbeans that Tomcat exposes.
 Running under a SecurityManager may complicate that effort.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAkzkBlwACgkQ9CaO5/Lv0PAh5wCeKQssMRezSzwagZ9AmCZuZf/5
 5gwAoMPy5pYlKYgyYM6UNh/nnH3DAZiI
 =jH6U
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



how to setup HOME_PATH for Java and CATALINA_HOME

2010-11-18 Thread Salam Y. ELIAS
I need to set up the environment variable JAVA_HOME and and
CATALINA_HOME to start some web and Java EE,  am  little bit confused
with conflicting information. 
When I run 
 java -version
ie get
java version 1.6.0_18
OpenJDK Runtime Environment (IcedTea6 1.8.2)
(fedora-43.1.8.2.fc13-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

When I run which java

I get
/usr/bin/java[/QUOTE]

checking my usr/share I see several directories
java (full of files and directories)
java-1.3.0 (1 jar in it)
java-1.3.1 (empty)
java-1.4.0 (empty)
java-1.5.0 (empty)
java-1.6.0 (empty)
java-1.7.0 (empty)

Issuing the echo %PATH gives the following


/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/salam/bin


In eclipse helios 3.6, I see in preferences  Java I have 

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64


How one can check that he has Java EE setup correctly with Apache Tomcat
6 ?

I have Apache Tomcat up and running and need to setup CATALINA_HOME. 
In the usr/share/java directory, I have a directory tomcat6 as well as
a tomcat6 directory in /usr/share/. In Eclipse, when I try to add a
server, eclipse doesnt see that I have a type of tomcat server.

I have found so many articles on the web but no 2 articles are similar.
I tried to browse Sun's Path setup tutorial but it seems it is not
available anymore.

Thanks for your help


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



Re: configuring the tomcat-6 to support list of user certificates

2010-11-18 Thread Mark Thomas
On 18/11/2010 05:03, shashidhar v wrote:
 Hi,
 
 Can anyone give some idea to configure the tomcat-6.0.18 to enable SSL (
 https ) and also to support the list of user certificates to access a sample
 web application
 I have the user certificate and also the CA certficate , I have checked the
 docs of tomcat but i was not clear to configure it if we have both user and
 CA certifcates

- Get SSL working without authentication first.
- Configure app to require SSL
- Configure app for BASIC auth
- Switch app to CLIENT-CERT

Mark

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



Re: how to setup HOME_PATH for Java and CATALINA_HOME

2010-11-18 Thread Pid
On 18/11/2010 09:46, Salam Y. ELIAS wrote:
 I need to set up the environment variable JAVA_HOME and and
 CATALINA_HOME to start some web and Java EE,  am  little bit confused
 with conflicting information. 

OK.  No problem.

 When I run 
  java -version
 ie get
 java version 1.6.0_18
 OpenJDK Runtime Environment (IcedTea6 1.8.2)
 (fedora-43.1.8.2.fc13-x86_64)
 OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
 
 When I run which java
 
 I get
 /usr/bin/java[/QUOTE]

OK so far.

 checking my usr/share I see several directories
   java (full of files and directories)
   java-1.3.0 (1 jar in it)
   java-1.3.1 (empty)
   java-1.4.0 (empty)
   java-1.5.0 (empty)
   java-1.6.0 (empty)
   java-1.7.0 (empty)
 
 Issuing the echo %PATH gives the following
 
   
 /usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/salam/bin
 
 
 In eclipse helios 3.6, I see in preferences  Java I have 
 
   /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
 
 
 How one can check that he has Java EE setup correctly with Apache Tomcat
 6 ?

If you're running Tomcat inside an IDE, it'll configure both for you.

If you're running Tomcat on the OS, you can type:

 echo $JAVA_HOME

to find out if the variable is already set.

 I have Apache Tomcat up and running and need to setup CATALINA_HOME. 

If you already have it running, why do you need to set CATALINA_HOME?

CATALINA_HOME  CATALINA_BASE are set automatically by Tomcat when it
starts up.  You only need to set CATALINA_BASE if you are configuring
multiple separate Tomcat instances while using the same binary.

What are you trying to achieve?

 In the usr/share/java directory, I have a directory tomcat6 as well as
 a tomcat6 directory in /usr/share/. 

What is in those directories?

How did you install Tomcat, by downloading a package in your OS or by
downloading Tomcat from the tomcat.apache.org site?


p

 In Eclipse, when I try to add a
 server, eclipse doesnt see that I have a type of tomcat server.
 
 I have found so many articles on the web but no 2 articles are similar.
 I tried to browse Sun's Path setup tutorial but it seems it is not
 available anymore.
 
 Thanks for your help
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: configuring https enabled tomcat using user and CA certificate

2010-11-18 Thread Mark Thomas
On 18/11/2010 09:04, Abhishek Srivastava wrote:
 SEVERE: Error initializing endpoint
 java.io.IOException: Alias name root does not identify a key entry

That tells you what is wrong. You have imported the cert but not the
associated private key.

Mark

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



Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Pid
On 18/11/2010 09:34, Rob Gregory wrote:
 Thanks Chris,
 
 After messing around with JNDI yesterday I came to the same conclusion that 
 Tomcat is doing some isolation and I can understand why. I will look into the 
 JMX approach you suggest as I am running out of options. If That doesn't 
 provide a solution I think I will have to deploy our connection pool logic to 
 the shared 'tomcat/lib' directory where static collections will be available 
 to all contexts. Do you see any issues with deploying code within the lib 
 directory? 

I'm not sure about static, but maybe you can use a LifecycleListener to
configure the pool globally.  Check out the Listeners defined at the
start of server.xml for examples.


p

 Many thanks for your help
 Rob
 
 
 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: 17 November 2010 16:44
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

 Rob,
 
 On 11/17/2010 7:07 AM, Rob Gregory wrote:
 Is it possible to just store my existing collection of datasources in
 some global context?

 I.e.
 initCtx = new InitialContext();
 Context envCtx  = (Context)initCtx.lookup(java:/comp/env);
 envCtx.bind(datasource_live, objLiveDatasource);
 envCtx.bind(datasource_test, objTestDatasource);

 or something along those lines?
 
 The above isn't going to work because Tomcat provides webapp isolation
 in the JNDI space.
 
 You should look into the documentation for Tomcat's JMX beans: I'm sure
 there is a way to use those to create on-the-fly DataSources (really
 DataSourceFactories I think) using the mbeans that Tomcat exposes.
 Running under a SecurityManager may complicate that effort.
 
 -chris

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



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Mark Thomas
On 18/11/2010 09:34, Rob Gregory wrote:
 Thanks Chris,
 
 After messing around with JNDI yesterday I came to the same conclusion that 
 Tomcat is doing some isolation

Random thoughts that may or may not help.

If you look in the DataSourceRealm you will see some code that lets a
web-app use a DataSource from either webapp JNDI or global JNDI. That
might give you some pointers.

Also, I'm pretty sure there is some write protection applied to the
global JNDI somewhere. That might also get in your way.

Mark

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



RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
Thanks Pid,

That’s two suggestions for me to try. Many thanks for your assistance.

Rob

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Sent: 18 November 2010 10:26
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
 
 On 18/11/2010 09:34, Rob Gregory wrote:
  Thanks Chris,
 
  After messing around with JNDI yesterday I came to the same conclusion that
 Tomcat is doing some isolation and I can understand why. I will look into the
 JMX approach you suggest as I am running out of options. If That doesn't
 provide a solution I think I will have to deploy our connection pool logic to
 the shared 'tomcat/lib' directory where static collections will be available
 to all contexts. Do you see any issues with deploying code within the lib
 directory?
 
 I'm not sure about static, but maybe you can use a LifecycleListener to
 configure the pool globally.  Check out the Listeners defined at the start of
 server.xml for examples.
 
 
 p
 
  Many thanks for your help
  Rob
 
 
  -Original Message-
  From: Christopher Schultz [mailto:ch...@christopherschultz.net]
  Sent: 17 November 2010 16:44
  To: Tomcat Users List
  Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection
  pools
 
  Rob,
 
  On 11/17/2010 7:07 AM, Rob Gregory wrote:
  Is it possible to just store my existing collection of datasources
  in some global context?
 
  I.e.
  initCtx = new InitialContext();
  Context envCtx  = (Context)initCtx.lookup(java:/comp/env);
  envCtx.bind(datasource_live, objLiveDatasource);
  envCtx.bind(datasource_test, objTestDatasource);
 
  or something along those lines?
 
  The above isn't going to work because Tomcat provides webapp isolation
  in the JNDI space.
 
  You should look into the documentation for Tomcat's JMX beans: I'm
  sure there is a way to use those to create on-the-fly DataSources
  (really DataSourceFactories I think) using the mbeans that Tomcat exposes.
  Running under a SecurityManager may complicate that effort.
 
  -chris
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
Thanks Mark.

I'm spoilt for choice now and have some serious reading to do. Between the 
three suggestions I must be able to come up with a solution to my problem. 
Thanks to all for the pointers, most helpful.

Rob 

 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: 18 November 2010 10:30
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
 
 On 18/11/2010 09:34, Rob Gregory wrote:
  Thanks Chris,
 
  After messing around with JNDI yesterday I came to the same conclusion that
 Tomcat is doing some isolation
 
 Random thoughts that may or may not help.
 
 If you look in the DataSourceRealm you will see some code that lets a
 web-app use a DataSource from either webapp JNDI or global JNDI. That
 might give you some pointers.
 
 Also, I'm pretty sure there is some write protection applied to the
 global JNDI somewhere. That might also get in your way.
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



Re: configuring https enabled tomcat using user and CA certificate

2010-11-18 Thread Abhishek Srivastava
thanks.

well can u tell me the exact way of importing the key. I mean which command
i must use.

I have one userkey.pem also
I have one pkcs12 file which is combination of usercert.pem and
userkey.pem...should I merge this with cacert.pem..

*How I can enable my tomcat on https with given certificates like
userkey.pem, usercert.pem and cacert.pem.*

On Thu, Nov 18, 2010 at 3:55 PM, Mark Thomas ma...@apache.org wrote:

 On 18/11/2010 09:04, Abhishek Srivastava wrote:
  SEVERE: Error initializing endpoint
  java.io.IOException: Alias name root does not identify a key entry

 That tells you what is wrong. You have imported the cert but not the
 associated private key.

 Mark

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




-- 
Thanks  Regards,
Abhishek Srivastava
+919731897198


Re: [OT] How to obtain the id of the current process

2010-11-18 Thread André Warnier

Pid wrote:

On 17/11/2010 22:41, André Warnier wrote:

Typical Java thinking..
Sure, let's pull in another 15 classes..
Gotta use those GB of RAM for something..
Why do simple when complicated would do just as well, he ?


That doesn't make sense*.

Leon's trying to avoid using more RAM.  The JMX method pulls in one
class, uses another indirectly  generates a String.  Hardly a memory
intensive operation.

Splitting a String isn't exactly elegant, but it _is_ cross platform
AFAICT  starting processes appears to be problematic, so it's the best
of a bad bunch IMHO.



I think you missed the ;-) which was part of the jibe...

This being said, I agree that this JMX method seems to be the only cross-platform one, 
among the 10 or so solutions seen so far (some of which are really resource-intensive, as 
I pointed out).
The real question here is why there is not a *simple* direct method call available in the 
JVM.  The justification according to which a PID is not necessarily available on every 
platform seems a very weak one.



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



[OT] re : spam

2010-11-18 Thread André Warnier

Guys,
I am starting to receive quite a bit of spam from a guy named Ed about career 
moves etc..
Somehow it seems to originate from (or maybe simply mention) the tomcat users list as a 
reply-to.  I have also seen at least one message like that in the list itself.
Anything that should/can be done about this ?  Does it mean that someone harvested the 
list of subscribers to the list, or worse ?


Or is it just me ?

Among the headers in the messages themselves are :
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])   
...
Received-SPF: pass (athena.apache.org: domain of ed_b...@hotmail.com designates 
65.55.90.152 as permitted sender)

..

(full headers available on request)



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



Re: Apache Tribes:Is it suitable for P2P Applications?

2010-11-18 Thread Mark Thomas
On 17/11/2010 16:05, hdia...@csd.uoc.gr wrote:
 -Does Apache Tribes support message parallelism/multithreading?
Yes.

 -Is it scalable?Does it support a limited number of peers or it depends
 on machinery hardware/equipment?
It should be. I haven't tested it explicitly but all the scalability
issues I have seen reported as a result of Tomcat's clustering have been
config errors / app issues rather than a limit of tribes.

 -What about feedback?
Feedback of what, from where, to where?

 -In addition,could we retrieve statistics and information about the
 topology of the network when nodes are built via the framework(even if
 these information have to be segregated/collected by us;I am asking if
 it is possible)?
Yes. You can write interceptors to gather statistics. There is already
at least one such interceptor in the clustering code base.

 Most of my questions seem answered in this page:
 http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html
 However,many links are broken(Javadocs,
Fixed - will be in next release. Most pages were actually missing. I
added blank place-holders. Patches for some actual content welcome :)

 setup guide shows blank page)and
Yep - it hasn't been written yet. I added a TODO marker to make it obvious.

 I can't get much more information about it.In addition,I have doubts if
 your community still actively supports it.Do you think I should look
 elsewhere?
It is the basis for Tomcat's clustering implementation so it is
supported. There are also folks using it directly, reporting bugs ([1],
[2]) and getting those bugs fixed.

Mark

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=50183
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=50184

 
 I do hope for positive answers, as the feature overview seems fantastic
 to me(parallel delivery,message feedback).As far as peer-nodes are
 concerned we've succeeded with ~400-500 peers alive together(quite a
 modicum quantity for P2P networks).
 
 Hercules Diakos
 
 
 This message was sent using IMP, the Internet Messaging Program.
 
 
 -
 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: [OT] How to obtain the id of the current process

2010-11-18 Thread Pid
On 18/11/2010 10:47, André Warnier wrote:

 The justification according to which a PID is not
 necessarily available on every platform seems a very weak one.

Quite.  In which case, return a null.  Enough other methods do...


p



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [OT] re : spam

2010-11-18 Thread Mark Thomas
On 18/11/2010 11:04, André Warnier wrote:
 Guys,
 I am starting to receive quite a bit of spam from a guy named Ed about
 career moves etc..
 Somehow it seems to originate from (or maybe simply mention) the tomcat
 users list as a reply-to.  I have also seen at least one message like
 that in the list itself.
 Anything that should/can be done about this ?  Does it mean that someone
 harvested the list of subscribers to the list, or worse ?

A spammer subscribed themselves to the users list and started sending
messages.

As soon as the moderators woke up, had a shot of caffeine and started
wading through their inboxes, the idiot was spotted, removed from both
the users@ and dev@ lists and banned from further subscriptions.

How quickly something like this gets spotted and dealt with depends on
when it starts, which timezone the moderators are in at the time and
when they look at the list traffic. I'd be surprised if it went on for
more than 24 hours before being dealt with.

If you need to get hold of the moderators, email users-ow...@tomcat...

If that fails you can always escalate it to the ASF infra team but
please don't do that unless the moderators appear to have gone AWOL for
at least several days.

 Or is it just me ?

Nope.

 Among the headers in the messages themselves are :
 Received: from mail.apache.org (hermes.apache.org [140.211.11.3])   
 ...
 Received-SPF: pass (athena.apache.org: domain of ed_b...@hotmail.com
 designates 65.55.90.152 as permitted sender)

Yep. I see the same thing. The spammer was subscribed to the users list.

Mark

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



Re: [OT] re : spam

2010-11-18 Thread M . H . G . Emmerig

It is not just you. I received some emails from ed as well.


Milko

   
 André Warnier   
 a...@ice-sa.com   
To
 18-11-2010 12:04  Tomcat Users List   
   users@tomcat.apache.org   
cc
 Please respond to 
   Tomcat Users   Subject
   List   [OT] re : spam  
 us...@tomcat.apa 
 che.org  
   
   
   
   




Guys,
I am starting to receive quite a bit of spam from a guy named Ed about
career moves etc..
Somehow it seems to originate from (or maybe simply mention) the tomcat
users list as a
reply-to.  I have also seen at least one message like that in the list
itself.
Anything that should/can be done about this ?  Does it mean that someone
harvested the
list of subscribers to the list, or worse ?

Or is it just me ?

Among the headers in the messages themselves are :
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
...
Received-SPF: pass (athena.apache.org: domain of ed_b...@hotmail.com
designates
65.55.90.152 as permitted sender)
..

(full headers available on request)



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




Please consider the environment before printing this email.

De informatie verzonden met dit e-mailbericht is vertrouwelijk en
uitsluitend bestemd voor de geadresseerde. Indien u als niet-geadresseerde
dit bericht ontvangt, wordt u verzocht direct de afzender hierover te
informeren en het bericht te vernietigen. Gebruik van informatie door
onbevoegden, openbaarmaking of vermenigvuldiging  is verboden en kan leiden
tot aansprakelijkheid. De afzender is niet aansprakelijk in geval van
onjuiste overbrenging van het e-mailbericht en/of bij ontijdige ontvangst
daarvan.

The information transmitted is confidential and intended only for the
person or entity to whom or which it is addressed. If you are not the
intended recipient of this communication, please inform us immediately and
destroy this communication. Unauthorised use, disclosure or copying of
information is strictly prohibited and may entail liability. The sender
accepts no liability for improper transmission of this communication nor
for any delay in its receipt.

Problems with new mod_jk and possible misinformation on the website

2010-11-18 Thread Héctor Gómez

Hi, I'm running a CentOs 5 with Apache 2.0.52. I've tried to connect Apache 
with Tomcat 7.0.4 using mod_jk
First I tried the jk-1.2.31 version. As I have a i586 I choosed the i386 
release, and downloaded mod_jk-1.2.31-httpd-2.0.x.so  
Ok, here there might be a mistake. On the description you can read Apache 
Tomcat Connectors (mod_jk) 1.2.31 for Linux x86_64. Notice the x86_64! (I'm 
inside the i386 folder!)
That connector is said to be built against version 2.0.52, but it doesn't work. 
Apache fails on startup and logs no error, and mod_jk log neither. Maybe the 
i386 version is not suitable for a i586, or maybe this is in fact a x86_64 
version (as the description says) even if it's placed into the i386 folder.
Anyway, I downloaded the jk-1.2.30 for i586. That suits my architecture, and 
Apache starts up the right way. But... no redirection is done! The connector 
doesn't seem to be working as expected. The problem is that this version may 
not be suitable for me, as it has been build against version 2.0.61 and should 
work with Apache 2.0.55 and later. But mine is 2.0.52 and I can't change it.
Should I downgrade
What can I do? Is there a problem with the jk-1.2.31 for i386? or is it just a 
misplaced description? Hope anyone can check that because if so, it would be a 
severe error.
Thanks in advance for your time
PS: I assume that my worker.properties and mod_jk.conf have good 
configurations, as I've used this connector with previos versions of Apache and 
Tomcat in other systems.
  

Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Tim Funk

If you have Apr available ... you might be able to use this ...
org.apache.tomcat.jni.Stdlib.getpid()

// public static native int getpid();

-Tim

On 11/18/2010 6:10 AM, Pid wrote:

On 18/11/2010 10:47, André Warnier wrote:


The justification according to which a PID is not
necessarily available on every platform seems a very weak one.


Quite.  In which case, return a null.  Enough other methods do...


p



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



Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Ronald Klop

That is why my Tomcats spawn a pool of sh scripts to have them run a unix 
command (ImageMagick, etc.)
Forking of a threaded process is very expensive on a loaded server. Unix has to 
suspend all threads, than fork, do a lot of housekeeping and than resume all 
threads. After making a pool of running sh instances which listen on stdin for 
commands my system %cpu went down so it has more time for user %cpu. Throughput 
doubled in my scenario's.

Ronald.


Op woensdag, 17 november 2010 22:30 schreef Leon Rosenberg 
rosenberg.l...@gmail.com:


 
Hi,


I have a ugly issue I'm sure many people on this list already solved.
For multiple purposes I need pid's of processes, to stop/start them or
ensure they are running. So far nothing spectacular.
To obtain the pid I have following util:

String[] cmd = { /bin/bash, -c, echo $PPID };
p = Runtime.getRuntime().exec(cmd);

and afterwards read the ppid from the output stream of my process. So
far - so good.

The problem now occurs if a process has a lot of memory configured.
Like 25Gb on a 32Gb machine. In such a configuration the above command
fails with an OS'es out of memory, because fork
fails to create another process with THAT amount of memory:

1598388 2010-11-17 02:54:47,061 ERROR net.anotheria.util.PidTools -
Could not determine PID: java.io.IOException: Cannot run program
/bin/bash: java.io.IOException: error=12, Cannot allocate memory

Is there another method to obtain the process id from within the process?

regards
Leon

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









Re: configuring the tomcat-6 to support list of user certificates

2010-11-18 Thread shashidhar v
Hi Mark,


Could you please give any references or some sample steps   , I am new to
this tomcat usage and web applications .
First, I want to check the authentication of users based on their DNs . I am
using tomcat-6.0.18 on linux platform.
I have usercert.pem, userkey.pem, cacert.pem files


Thanks  Regards,
shashi

On Thu, Nov 18, 2010 at 3:41 PM, Mark Thomas ma...@apache.org wrote:

 On 18/11/2010 05:03, shashidhar v wrote:
  Hi,
 
  Can anyone give some idea to configure the tomcat-6.0.18 to enable SSL (
  https ) and also to support the list of user certificates to access a
 sample
  web application
  I have the user certificate and also the CA certficate , I have checked
 the
  docs of tomcat but i was not clear to configure it if we have both user
 and
  CA certifcates

 - Get SSL working without authentication first.
 - Configure app to require SSL
 - Configure app for BASIC auth
 - Switch app to CLIENT-CERT

 Mark

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




RE: configuring the tomcat-6 to support list of user certificates

2010-11-18 Thread Caldarale, Charles R
 From: shashidhar v [mailto:shashidhar.velagand...@gmail.com] 
 Subject: Re: configuring the tomcat-6 to support list of user certificates

 Could you please give any references or some sample steps

Start here:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
http://wiki.apache.org/tomcat/HowTo#Setting_up_SSL

 - 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



Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
I managed to make Apache Tomcat work and created a dynamic web project.
However, the inside the ide is flagged with a red exclamation mark.
Checked the problems pane, it seems it is related to log4j jar file, I
found
--
Description ResourcePathLocationType
The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non
existing library /usr/share/tomcat6/lib/log4j-6.0.26.jarTestTomcat
Build path  Build Path Problem
--

I checked my tomcat directrory, I have log4j.jar and a linik file
log4j-6.0.26.jar.

What I noticed is that this link file is flagged with a lock image on
the file icon  besides it.

All other jars are there well seen in the build bath except this one
flagged with red
What is needed to be done ?

Thanks in advance




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



Re: Assistance determining cause of httpd error log entries

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 11/18/2010 3:41 AM, David Dabbs wrote:
 We're fronting a Tomcat 6.0.29 instance with httpd 2.2.15 via mod_proxy_ajp.

Obligatory question: is it really necessary to use httpd at all?

 My suspicion is that we get requests with too-long request uri and or
 Referrer and this is gumming up the works for AJP protocol marshalling.

I believe that's correct. See below:

 Would a change to mod_proxy_http solve the issues? I’d rather not do that if
 there’s some Apache/Tomcat connector conf change I can make.

Switching to mod_proxy_http will probably get you a bit more stability
- -- the mode_proxy_http connector is older and more mature than
mod_proxy_ajp. Switching to mod_jk might also get you better stability,
but the configuration is totally different between mod_proxy_ajp and
mod_jk, so that might be a no-go for you. mod_proxy_http and
mod_proxy_ajp have virtually the same configuration (just change all
ajp:// to http://) so it's easier to switch from one to the other.

 FWIW, here’s my connector def:
 !-- Define an AJP 1.3 Connector on port 8009 --
 
 Connector port=8009 protocol=AJP/1.3 maxThreads=2048
 minSpareThreads=50 maxSpareThreads=200 enableLookups=false/

That looks pretty standard. 2048 threads might be dangerous depending on
your environment: we have lots of reports of OutOfMemoryErrors being
thrown because the JVM can't launch a new thread due to resource
constraints placed on it by the OS. You might want to double-check your
environment just to be sure.

 These happen together
 
 [Wed Nov 17 16:54:49 2010] [error] ajp_msg_append_cvt_string():
 BufferOverflowException 4 3129
 [Wed Nov 17 16:54:49 2010] [error] ajp_marshal_into_msgb: Error appending
 the query string
 [Wed Nov 17 16:54:49 2010] [error] ajp_send_header: ajp_marshal_into_msgb
 failed
 [Wed Nov 17 16:54:49 2010] [error] (120001)APR does not understand this
 error code: proxy: AJP: request failed to 127.0.0.1:8009 (localhost)

Hmm. That's either a mod_proxy_ajp bug or a misconfiguration of httpd
and/or Tomcat. What is your mod_proxy_ajp configuration? Specifically,
are you setting a max_packet_size?

 Some are like this:
 [Wed Nov 17 18:25:10 2010] [error] ajp_msg_append_cvt_string():
 BufferOverflowException 4 8186
 [Wed Nov 17 18:25:10 2010] [error] ajp_marshal_into_msgb: Error appending
 attribute AJP_REMOTE_PORT=50872
 [Wed Nov 17 18:25:10 2010] [error] ajp_send_header: ajp_marshal_into_msgb
 failed
 [Wed Nov 17 18:25:10 2010] [error] (120001)APR does not understand this
 error code: proxy: AJP: request failed to 127.0.0.1:8009 (localhost)

Do the above two errors always happen with this following it:

 [Wed Nov 17 06:08:14 2010] [error] [client 216.220.11.62] request
 failed: URI too long (longer than 8190)

?

If you are using very long URIs and/or many headers, you can get these
kinds of errors. The AJP protocol (or maybe just the httpd and Tomcat
implementation of them) needs to fit all of the HTTP headers (including
the request line - GET /foo/...) into a single packet, whose default
size is 8192 bytes.

Someone recently posted an error on the Tomcat size with an AJP response
that was failing for the same reason. Unfortunately, the Tomcat code is
pretty rough and you get nasty ArrayIndexOutOfBoundsExceptions and no
real good message like header content is too long for packet size or
something meaningful like that.

 This one is clear, is there a conf change I can make?

You can set the packetSize attribute in Tomcat's Connector and make
a corresponding change to the max_packet_size in httpd (I'm sorry, I
don't know how to configure that in mox_proxy_ajp since I pretty much
exclusively use mod_jk... you'll have to look up the configuration for
that on your own).

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzlPaUACgkQ9CaO5/Lv0PCuoACdGNHdAJ3Tg65g5EAA2WdEZRO9
AaEAn1u7qm96F3RkBaAoy8qYXO0BOTmY
=smvi
-END PGP SIGNATURE-

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



Re: Problems with new mod_jk and possible misinformation on the website

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 11/18/2010 7:01 AM, Héctor Gómez wrote:
 Hi, I'm running a CentOs 5 with Apache 2.0.52. I've tried to connect
  Apache with Tomcat 7.0.4 using mod_jk. First I tried the jk-1.2.31 
 version. As I have a i586 I choosed the i386 release, and downloaded
  mod_jk-1.2.31-httpd-2.0.x.so Ok, here there might be a mistake. On 
 the description you can read Apache Tomcat Connectors (mod_jk) 
 1.2.31 for Linux x86_64. Notice the x86_64! (I'm inside the i386 
 folder!)

That looks like a documentation mistake.

$ wget
'http://www.motorlogy.com/apachemirror//tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.31/i386/mod_jk-1.2.31-httpd-2.0.x.so'

$ md5sum mod_jk-1.2.31-httpd-2.0.x.so
7ffd2f097a399669e28fb47e5d6c065c  mod_jk-1.2.31-httpd-2.0.x.so

$ file mod_jk-1.2.31-httpd-2.0.x.so
mod_jk-1.2.31-httpd-2.0.x.so: ELF 32-bit LSB shared object, Intel 80386,
version 1 (SYSV), dynamically linked, not stripped

Looks like i386 to me.

 That connector is said to be built against version 2.0.52, but it 
 doesn't work. Apache fails on startup and logs no error, and mod_jk 
 log neither.

If the module won't load, you won't get a mod_jk.log file at all. Try
turning-up the error log level in httpd and trying again.

I've never seen httpd fail to start and /also/ fail to emit an error
message of /some/ kind. If CentOS has the error log going to syslog or
something, you might want to check there, too.

 Maybe the i386 version is not suitable for a i586

Nope, i386 should even work on x86_64 (as long as the process is in x86
mode).

 or maybe this is in fact a x86_64 version (as the description says) 
 even if it's placed into the i386 folder.

Nope, see above.

 Anyway, I downloaded the jk-1.2.30 for i586. That suits my 
 architecture, and Apache starts up the right way. But... no 
 redirection is done!

Configuration please? Jk* directives as well as workers.properties (if
you are using one) and urimap.properties (if you are using one). Also,
tell us what URIs you are trying that aren't being redirected.

Often, users specify their JkMounts at the top-level configuration, and
then use a VirtualHost to define all of their services. If you do
that, you'll observe mod_jk doing nothing at all. You should move your
JkMounts to within your VirtualHost. If you /must/ define those at the
top-level, then use JkMountCopy On in your VirtualHost and that
should inherit your mounts from the top-level.

 The connector doesn't seem to be working as expected. The problem is 
 that this version may not be suitable for me, as it has been build 
 against version 2.0.61 and should work with Apache 2.0.55 and 
 later. But mine is 2.0.52 and I can't change it. Should I 
 downgrade?

I don't think you should downgrade.

 What can I do? Is there a problem with the jk-1.2.31 for i386?

Perhaps.

 or is it just a misplaced description?

That is almost certainly true.

Another option you always have is to compile the module yourself. If you
have gcc and make installed as well as apxs (usually installed with an
apache-httpd-dev package or somesuch), then it's trivial to compile
mod_jk against your own httpd that is pretty much guaranteed to work.

I always compile my own mod_jk and I've never had any problems.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzlQU0ACgkQ9CaO5/Lv0PBTsACghgiSD5z61g3XXeQrn93iCvlZ
IBAAn2k8k77Y/wPTTpzfnBGCmZK3hpmH
=AcvA
-END PGP SIGNATURE-

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



Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 11/17/2010 4:50 PM, André Warnier wrote:
 I found the following trick somewhere, maybe it works for you :
 
 When starting your JVM, use a line like
 
 java -Dpid=$$ program.java
 and in the java program using the statement System.getProperty(pid);
 
 If it works, it's cute, and certainly a lot less overhead.

Doesn't that set the pid system property to the pid of the shell that
launched the JVM?

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

iEYEARECAAYFAkzlQjkACgkQ9CaO5/Lv0PC63ACfROqppZe+t4kKOuEq/r4PeQDL
md8AnA2fvxwI89iHlm4wjdEx/kbvPpHZ
=Ghld
-END PGP SIGNATURE-

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



Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Mark Thomas
On 18/11/2010 14:24, Salam Y. ELIAS wrote:
 I managed to make Apache Tomcat work and created a dynamic web project.
 However, the inside the ide is flagged with a red exclamation mark.
 Checked the problems pane, it seems it is related to log4j jar file, I
 found
 --
 Description   ResourcePathLocationType
 The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non
 existing library /usr/share/tomcat6/lib/log4j-6.0.26.jar  TestTomcat
 Build pathBuild Path Problem
 --
 
 I checked my tomcat directrory, I have log4j.jar and a linik file
 log4j-6.0.26.jar.
 
 What I noticed is that this link file is flagged with a lock image on
 the file icon  besides it.
 
 All other jars are there well seen in the build bath except this one
 flagged with red
 What is needed to be done ?

No idea. The default install from the ASF does not use log4j. Your
options are:
-contact the maintainers of whatever 3rd party package you used for support
- use an ASF distribution

Mark

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



Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim,

On 11/18/2010 7:19 AM, Tim Funk wrote:
 If you have Apr available ... you might be able to use this ...
 org.apache.tomcat.jni.Stdlib.getpid()
 
 // public static native int getpid();

I was going to suggest roughly the same thing, except I didn't know it
was available via APR.

The only really scary thing about JNI is having to implement your shared
library for all potential platforms. If you have one environment for
dev/test/prod, then you're all good: just create one library.

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

iEYEARECAAYFAkzlQ2UACgkQ9CaO5/Lv0PAHVACfb6ur/Yl3tyihP8cZ8r3sHzJx
4nEAoIuXSctW9rieXZwajMXf5fw0aSSI
=qOLG
-END PGP SIGNATURE-

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



Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Salam,

On 11/18/2010 9:24 AM, Salam Y. ELIAS wrote:
 I checked my tomcat directrory, I have log4j.jar and a linik file
 log4j-6.0.26.jar.

log4j is currently at version 1.2.x. I'm not sure what that 6.0.26 could
possibly be, other than some corrupt library.

 What I noticed is that this link file is flagged with a lock image on
 the file icon  besides it.
 
 All other jars are there well seen in the build bath except this one
 flagged with red
 What is needed to be done ?

How about:

$ ls -l /usr/share/tomcat6/lib/

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

iEYEARECAAYFAkzlQ/cACgkQ9CaO5/Lv0PB4MgCgkFFjYxhuXN4vzcbOd//A+Zvr
V8wAn36jxwhvL9Hqj3fOJy2/5NyjmWkR
=9Z/E
-END PGP SIGNATURE-

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



RE: EXTERNAL: Re: Tomcat hung

2010-11-18 Thread Robillard, Greg L
Production, as of yet, strangely, I have not been able to create this problem 
testing.

Here is the top of the stack without a profiler.

2010-10-04 10:35:50
Full thread dump Java HotSpot(TM) Server VM (10.0-b19 mixed mode):

Attach Listener daemon prio=10 tid=0x08170400 nid=0x716b waiting on condition 
[0x..0x]
   java.lang.Thread.State: RUNNABLE

http-8080-200 daemon prio=10 tid=0xcbca9800 nid=0xb5e waiting on condition 
[0xc5dbc000..0xc5dbcea0]
   java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  0xd50244e8 (a 
java.util.concurrent.locks.ReentrantReadWriteLock$FairSync)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(Unknown
 Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(Unknown 
Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(Unknown 
Source)
at 
java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(Unknown Source)
at 
com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getOffering(ScanningCoverage.java:286)
at 
com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getCoverageOffering(ScanningCoverage.java:282)
at com.luciad.ogc.wcs.server.f.a(SourceFile:124)
at com.luciad.ogc.wcs.server.f.a(SourceFile:14)
at com.luciad.ogc.wcs.server.f$c.handleRequest(SourceFile:155)
at com.luciad.ogc.common.f.a(LuciadMap:41)
at com.luciad.ogc.wcs.TLcdWCSServlet.a(LuciadMap:68)
at com.luciad.ogc.wcs.TLcdWCSServlet.doGet(LuciadMap:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)

http-8080-199 daemon prio=10 tid=0xcbca8400 nid=0xb5d waiting on condition 
[0xc5e0d000..0xc5e0de20]
   java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  0xd50244e8 (a 
java.util.concurrent.locks.ReentrantReadWriteLock$FairSync)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)

I can include more if required.

-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Wednesday, November 17, 2010 3:57 PM
To: Tomcat Users List
Subject: EXTERNAL: Re: Tomcat hung

On 17/11/2010 21:50, Robillard, Greg L wrote:
 I continually get tomcat in this state and can only recover by restarting 
 tomcat from the command line.  Here is the stack trace that I gathered while 
 getting into this state, but it does not make any sense to me.

Production or testing?

Are these the only threads?

What happens if you jstack without attempting to connect a profiler?


p

 Tomcat version apache-tomcat-6.0.26
 
 OS linux
 
 Jstack trace on tomcat hang.
 Tomcat is not responding, nor any webapps.  Profiler will not attach
 
 Attaching to process ID 21989, please wait...
 Debugger attached successfully.
 Server compiler detected.
 JVM version is 10.0-b19
 Deadlock Detection:
 
 No deadlocks found.
 
 Thread 15911: (state = BLOCKED)
 - 
 org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getAndSendCurre
 ntStackTrace(char, char, int, long) @bci=0, line=218 (Compiled frame)
 - 
 org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness.traceObjAl
 loc(java.lang.Object, char) @bci=158, line=278 (Compiled frame)
 - 
 java.io.ObjectInputStream$BlockDataInputStream.init(java.io.ObjectIn
 putStream, java.io.InputStream) @bci=91, line=2359 (Interpreted frame)
 - java.io.ObjectInputStream.init(java.io.InputStream) @bci=25, 
 line=276 (Interpreted frame)
 - sun.rmi.server.MarshalInputStream.init(java.io.InputStream) 
 @bci=2, line=107 (Interpreted frame)
 - sun.rmi.transport.ConnectionInputStream.init(java.io.InputStream) 
 @bci=2, line=38 (Interpreted 

Re: 7.0.4 problem

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

On 11/13/2010 7:26 AM, Mark Thomas wrote:
 I think you have hit this:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=50159
 
 Technically, 7.0.4 is sticking to the letter of the J2EE spec but it
 isn't what applications expect. 7.0.5 will revert to the previous
 behaviour but with an configurable option for those folks who want their
 resource factories to behave differently.

I've just read that bug description and I'm not sure I understand it:
every request to the JNDI lookup results in a completely new DataSource
being created and filled with connections?

Uh, oh.

Does that mean that applications should request the DataSource from JNDI
a single time during it's life and then re-use that DataSource indefinitely?

I'd better stop suggesting that everyone do JNDI lookups every time they
need a db connection, then :)

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

iEYEARECAAYFAkzlSGQACgkQ9CaO5/Lv0PCC5gCgt9tZul8hmxsIfVYowcHZwrgg
SeQAoIKF8X5OrgSxybwCi03C/8uGsesI
=6y9U
-END PGP SIGNATURE-

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



Re: configuring https enabled tomcat using user and CA certificate

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Abhishek,

On 11/18/2010 5:41 AM, Abhishek Srivastava wrote:
 well can u tell me the exact way of importing the key. I mean which command
 i must use.

You have imported a certificate with the alias root. Instead, you
should import a key with the alias root.

You might want to read this:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Prepare_the_Certificate_Keystore

 *How I can enable my tomcat on https with given certificates like
 userkey.pem, usercert.pem and cacert.pem.*

I think you want trustStore for your user certificates, not keyStore.

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

iEYEARECAAYFAkzlSTcACgkQ9CaO5/Lv0PCbVgCfWu8+hUHHKOspyUl9872wxyU2
Ec0An2sBwOjTFybyGQq+DmJolJlM9/Bn
=Z4rc
-END PGP SIGNATURE-

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



Re: Assistance determining cause of httpd error log entries

2010-11-18 Thread David Dabbs
On Thu, Nov 18, 2010 at 8:52 AM, Christopher Schultz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David,

 On 11/18/2010 3:41 AM, David Dabbs wrote:
  We're fronting a Tomcat 6.0.29 instance with httpd 2.2.15 via
 mod_proxy_ajp.

 Obligatory question: is it really necessary to use httpd at all?


Yes, unfortunately.


  My suspicion is that we get requests with too-long request uri and or
  Referrer and this is gumming up the works for AJP protocol marshalling.

 I believe that's correct. See below:

  Would a change to mod_proxy_http solve the issues? I’d rather not do that
 if
  there’s some Apache/Tomcat connector conf change I can make.

 Switching to mod_proxy_http will probably get you a bit more stability
 - -- the mode_proxy_http connector is older and more mature than
 mod_proxy_ajp. Switching to mod_jk might also get you better stability,
 but the configuration is totally different between mod_proxy_ajp and
 mod_jk, so that might be a no-go for you. mod_proxy_http and
 mod_proxy_ajp have virtually the same configuration (just change all
 ajp:// to http://) so it's easier to switch from one to the other.

  FWIW, here’s my connector def:
  !-- Define an AJP 1.3 Connector on port 8009 --
 
  Connector port=8009 protocol=AJP/1.3 maxThreads=2048
  minSpareThreads=50 maxSpareThreads=200 enableLookups=false/

 That looks pretty standard. 2048 threads might be dangerous depending on
 your environment: we have lots of reports of OutOfMemoryErrors being
 thrown because the JVM can't launch a new thread due to resource
 constraints placed on it by the OS. You might want to double-check your
 environment just to be sure.

 Ok, thanks.

 These happen together
 
  [Wed Nov 17 16:54:49 2010] [error] ajp_msg_append_cvt_string():
  BufferOverflowException 4 3129
  [Wed Nov 17 16:54:49 2010] [error] ajp_marshal_into_msgb: Error appending
  the query string
  [Wed Nov 17 16:54:49 2010] [error] ajp_send_header: ajp_marshal_into_msgb
  failed
  [Wed Nov 17 16:54:49 2010] [error] (120001)APR does not understand this
  error code: proxy: AJP: request failed to 127.0.0.1:8009 (localhost)

 Hmm. That's either a mod_proxy_ajp bug or a misconfiguration of httpd
 and/or Tomcat. What is your mod_proxy_ajp configuration? Specifically,
 are you setting a max_packet_size?


See below.


  Some are like this:
  [Wed Nov 17 18:25:10 2010] [error] ajp_msg_append_cvt_string():
  BufferOverflowException 4 8186
  [Wed Nov 17 18:25:10 2010] [error] ajp_marshal_into_msgb: Error appending
  attribute AJP_REMOTE_PORT=50872
  [Wed Nov 17 18:25:10 2010] [error] ajp_send_header: ajp_marshal_into_msgb
  failed
  [Wed Nov 17 18:25:10 2010] [error] (120001)APR does not understand this
  error code: proxy: AJP: request failed to 127.0.0.1:8009 (localhost)

 Do the above two errors always happen with this following it:

  [Wed Nov 17 06:08:14 2010] [error] [client 216.220.11.62] request
  failed: URI too long (longer than 8190)

 ?

 No, URI too long is rare.


 If you are using very long URIs and/or many headers, you can get these
 kinds of errors. The AJP protocol (or maybe just the httpd and Tomcat
 implementation of them) needs to fit all of the HTTP headers (including
 the request line - GET /foo/...) into a single packet, whose default
 size is 8192 bytes.

 Someone recently posted an error on the Tomcat size with an AJP response
 that was failing for the same reason. Unfortunately, the Tomcat code is
 pretty rough and you get nasty ArrayIndexOutOfBoundsExceptions and no
 real good message like header content is too long for packet size or
 something meaningful like that.

  This one is clear, is there a conf change I can make?

 You can set the packetSize attribute in Tomcat's Connector and make
 a corresponding change to the max_packet_size in httpd (I'm sorry, I
 don't know how to configure that in mod_proxy_ajp since I pretty much
 exclusively use mod_jk... you'll have to look up the configuration for
 that on your own).


We're using mod_proxy_ajp. I'm considering adding the following to my Apache
 Tomcat configs
In Apache httpd.confProxyIOBufferSize 19456  # like max_packet_size
I think
LimitRequestFieldSize 18342In Tomcat server.xmlConnector port=8009
protocol=AJP/1.3
   maxThreads=2048 minSpareThreads=50 maxSpareThreads=200
   enableLookups=false
   packetSize=20480
/


 Hope that helps,
 - -chris


Yes. I appreciate the feedback.


RE: EXTERNAL: Re: Tomcat hung

2010-11-18 Thread Caldarale, Charles R
 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com] 
 Subject: RE: EXTERNAL: Re: Tomcat hung

 http-8080-200 daemon prio=10 tid=0xcbca9800 nid=0xb5e waiting on condition 
 [0xc5dbc000..0xc5dbcea0]
java.lang.Thread.State: WAITING (parking)
 at sun.misc.Unsafe.park(Native Method)
 - parking to wait for  0xd50244e8 (a 
 java.util.concurrent.locks.ReentrantReadWriteLock$FairSync)
 at java.util.concurrent.locks.LockSupport.park(Unknown Source)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(Unknown
  Source)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(Unknown 
 Source)
 at 
 java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(Unknown 
 Source)
 at 
 java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(Unknown 
 Source)
 at 
 com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getOffering(ScanningCoverage.java:286)
 at 
 com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getCoverageOffering(ScanningCoverage.java:282)
 at com.luciad.ogc.wcs.server.f.a(SourceFile:124)
 at com.luciad.ogc.wcs.server.f.a(SourceFile:14)
 at com.luciad.ogc.wcs.server.f$c.handleRequest(SourceFile:155)
 at com.luciad.ogc.common.f.a(LuciadMap:41)
 at com.luciad.ogc.wcs.TLcdWCSServlet.a(LuciadMap:68)
 at com.luciad.ogc.wcs.TLcdWCSServlet.doGet(LuciadMap:99)

That's all your code, not Tomcat's.  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: 7.0.4 problem

2010-11-18 Thread Mark Thomas
On 18/11/2010 15:38, Christopher Schultz wrote:
 Mark,
 
 On 11/13/2010 7:26 AM, Mark Thomas wrote:
 I think you have hit this:
 https://issues.apache.org/bugzilla/show_bug.cgi?id=50159
 
 Technically, 7.0.4 is sticking to the letter of the J2EE spec but it
 isn't what applications expect. 7.0.5 will revert to the previous
 behaviour but with an configurable option for those folks who want their
 resource factories to behave differently.
 
 I've just read that bug description and I'm not sure I understand it:
 every request to the JNDI lookup results in a completely new DataSource
 being created and filled with connections?
 
 Uh, oh.
 
 Does that mean that applications should request the DataSource from JNDI
 a single time during it's life and then re-use that DataSource indefinitely?
 
 I'd better stop suggesting that everyone do JNDI lookups every time they
 need a db connection, then :)

That is what the J2EE spec says (section EE.5.2.4, page 67).

By adding the singleton attribute (and defaulting it to true) we can
provide the behaviour folks expect, stick to the letter of the J2EE spec
and provide folks an option that want the more unusual behaviour.

Mark

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



Tomcat, JasperServer, and JAR files

2010-11-18 Thread Thangalin
Hi,

The iReport tool (and hence JasperReports) bundles scores of JAR files
across two different directories. (One of these JAR files conflicts with a
JAR file deployed by Tomcat.)

For development purposes it makes sense to have Tomcat and iReport installed
on the same machine. This poses a maintenance burden in the following
scenarios:

   1. *Bundle JARs with Servlet.* When deploying a JSP or Servlet that uses
   JasperReports, make a build script that packages up all the required JAR
   files into a WAR file before deploying to Tomcat.
   2. *Common libraries.* Copy the JAR files into Tomcat's common library
   directory.

In the first case, multiple applications using JasperReports will result in
a gross waste of resources as each WAR file would have to contain the
entirety of JasperReports. Although this allows for different applications
to use different versions of JasperReports, I believe that to be an uncommon
scenario.

It is possible to write and maintain multiple build scripts that use a
single location of JasperReports as the source of JAR files. This is a
hassle and still does not resolve the problem of having to bundle
JasperReports multiple times.

In the second case, there seems like there is nowhere to put the JAR files
that would not mix with existing JAR files (required by Tomcat). I am
looking for a spot to place all the JasperReports JAR files such that:

   - Upgrades are trivial (erase a directory, copy new version, done)
   - All applications can use it (one version of JasperReports for all
   applications)
   - The JAR files do not mix with other files
   - Maven, Ivy, or Ant is not required to maintain the JARs

Further, this leaves two copies of the JAR files on the development machine:
one in Tomcat's directory and one in iReport's directory hierarchy. I'd
prefer a single copy: the one with iReport. That way, when iReport is
upgraded, Tomcat need only be restarted.

Any ideas how the maintenance burden of multiple copies of JasperReport's
significant number of JAR files can be eliminated?

Many thanks,
Dave


RE: Tomcat hung

2010-11-18 Thread Robillard, Greg L
java -version
java version 1.6.0_05
Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Server VM 
(build 10.0-b19, mixed mode)

Last I checked, this is a real VM.

I will investigate the weather code.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Wednesday, November 17, 2010 3:58 PM
To: Tomcat Users List
Subject: EXTERNAL: RE: Tomcat hung

 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com]
 Subject: Tomcat hung

 JVM version is 10.0-b19

No idea what JVM that is; strongly suggest you install a real one (e.g., 6u22) 
and see if the problem goes away.

What happens if you run Tomcat directly, not under control of the IDE?

 - 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: Tomcat, JasperServer, and JAR files

2010-11-18 Thread Caldarale, Charles R
 From: Thangalin [mailto:thanga...@gmail.com] 
 Subject: Tomcat, JasperServer, and JAR files

 1. *Bundle JARs with Servlet.*

This is the proper approach.

 2. *Common libraries.*

A Really Bad Idea.

 In the first case, multiple applications using JasperReports 
 will result in a gross waste of resources

I would categorize it as a trivial waste of resources.  Have you checked the 
price of disk and RAM lately?

 Although this allows for different applications
 to use different versions of JasperReports

Probably more common than you think, since developers do not update all 
applications at the same time, nor do webapps go through 
test/staging/QA/deployment concurrently.  Deploying separate copies of the 
library JARs with each webapp insures that the webapps stay independent of each 
other, avoiding any chance of unwarranted and unexpected interaction with each 
other - especially important in any kind of secure environment.

 It is possible to write and maintain multiple build 
 scripts that use a single location of JasperReports
 as the source of JAR files. This is a hassle 

Why?  You write the script once and you're done.  I see no hassle here.

 still does not resolve the problem of having to bundle
 JasperReports multiple times.

That's not a problem, that's an advantage.

 I'd prefer a way to only use a single copy: the one with 
 iReport. That way, when iReport is upgraded, Tomcat need 
 only be restarted.

Which would be unacceptable in any kind of production environment I'm familiar 
with.  I want to be able to restart individual webapps, not forced to do so 
with the whole server.

From the previous incarnation of this thread on the dev list:

 Then why call the scripts setclasspath when you don't 
 actually set the classpath? ;-)

You're confusing the term classpath - an attribute of every classloader - with 
the environment variable CLASSPATH - a crutch for the lazy and trap for the 
unwary.

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

2010-11-18 Thread Caldarale, Charles R
 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com] 
 Subject: RE: Tomcat hung

 Java(TM) SE Runtime Environment (build 1.6.0_05-b13) 
 Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)

 Last I checked, this is a real VM.

Yes, it was identifying it just as 10.0-b19 that was confusing.

You might want to upgrade, since 1.6.0_05 is quite old and lots of fixes have 
gone in since then.

 - 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: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
Spot on Mark. 

I have been googling and playing around for over a day on this, Following your 
suggestion it boils down to a couple of lines of code:-

StandardServer server = (StandardServer) ServerFactory.getServer();
Context context = server.getGlobalNamingContext();
context.bind(dataSourceName, datasource);

Thanks again for the push in the right direction. 

Rob


 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: 18 November 2010 10:30
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
 
 On 18/11/2010 09:34, Rob Gregory wrote:
  Thanks Chris,
 
  After messing around with JNDI yesterday I came to the same conclusion that
 Tomcat is doing some isolation
 
 Random thoughts that may or may not help.
 
 If you look in the DataSourceRealm you will see some code that lets a
 web-app use a DataSource from either webapp JNDI or global JNDI. That
 might give you some pointers.
 
 Also, I'm pretty sure there is some write protection applied to the
 global JNDI somewhere. That might also get in your way.
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Mark Thomas
On 18/11/2010 16:54, Rob Gregory wrote:
 Spot on Mark. 
 
 I have been googling and playing around for over a day on this, Following 
 your suggestion it boils down to a couple of lines of code:-
 
 StandardServer server = (StandardServer) ServerFactory.getServer();
 Context context = server.getGlobalNamingContext();
 context.bind(dataSourceName, datasource);
 
 Thanks again for the push in the right direction.

No problem. Just be aware ServerFactory is gone in 7.0.x.

Mark

 
 Rob
 
 
 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: 18 November 2010 10:30
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

 On 18/11/2010 09:34, Rob Gregory wrote:
 Thanks Chris,

 After messing around with JNDI yesterday I came to the same conclusion that
 Tomcat is doing some isolation

 Random thoughts that may or may not help.

 If you look in the DataSourceRealm you will see some code that lets a
 web-app use a DataSource from either webapp JNDI or global JNDI. That
 might give you some pointers.

 Also, I'm pretty sure there is some write protection applied to the
 global JNDI somewhere. That might also get in your way.

 Mark

 -
 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: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Rob Gregory
Awww... Is there going to be a replacement for the ServerFactory? 

Also what sort out timescales are you looking at before a production release of 
Tomcat 7 is available?

Thanks Again.
Rob


 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: 18 November 2010 16:59
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
 
 On 18/11/2010 16:54, Rob Gregory wrote:
  Spot on Mark.
 
  I have been googling and playing around for over a day on this, Following
 your suggestion it boils down to a couple of lines of code:-
 
  StandardServer server = (StandardServer) ServerFactory.getServer();
  Context context = server.getGlobalNamingContext();
  context.bind(dataSourceName, datasource);
 
  Thanks again for the push in the right direction.
 
 No problem. Just be aware ServerFactory is gone in 7.0.x.
 
 Mark
 
 
  Rob
 
 
  -Original Message-
  From: Mark Thomas [mailto:ma...@apache.org]
  Sent: 18 November 2010 10:30
  To: Tomcat Users List
  Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools
 
  On 18/11/2010 09:34, Rob Gregory wrote:
  Thanks Chris,
 
  After messing around with JNDI yesterday I came to the same conclusion
 that
  Tomcat is doing some isolation
 
  Random thoughts that may or may not help.
 
  If you look in the DataSourceRealm you will see some code that lets a
  web-app use a DataSource from either webapp JNDI or global JNDI. That
  might give you some pointers.
 
  Also, I'm pretty sure there is some write protection applied to the
  global JNDI somewhere. That might also get in your way.
 
  Mark
 
  -
  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: [OT] How to obtain the id of the current process

2010-11-18 Thread André Warnier

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 11/17/2010 4:50 PM, André Warnier wrote:

I found the following trick somewhere, maybe it works for you :

When starting your JVM, use a line like

java -Dpid=$$ program.java
and in the java program using the statement System.getProperty(pid);

If it works, it's cute, and certainly a lot less overhead.


Doesn't that set the pid system property to the pid of the shell that
launched the JVM?

Now that you mention it, I think so too.  But that may be what Leon, the OP wanted : the 
top parent of the process running the JVM (and Tomcat). I suppose it would depend on what 
exactly you want to do with it.  What happens when you kill the shell which runs the JVM 
which runs Tomcat ?


Another question is whether it would be possible to delay the interpretation of the $$ 
until such time as when the JVM looks at it.

Something like : java -Dpid='$$' ...
(is there a way to tell java to get the value of an environment variable when it starts 
running ? I thought there was something of the kind. But maybe that variable is not set 
then. I am a bit confused now.)



Maybe we should turn the problem around though.
If Leon wanted the PID, it was obviously to do something with it later.
What do you do with a PID ?  Usually, one uses it to send a signal to a process.
And sending a signal to a process, Unix-like, is not likely to be very multi-platform in 
the first place.
So maybe finding a purely Java-based alternative to do what Leon wants to do with the PID 
would be more productive in the long run ?


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



Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
It is the Apache Tomcat shipped with Fedora 13
Salam

On Thu, 2010-11-18 at 15:14 +, Mark Thomas wrote:
 On 18/11/2010 14:24, Salam Y. ELIAS wrote:
  I managed to make Apache Tomcat work and created a dynamic web project.
  However, the inside the ide is flagged with a red exclamation mark.
  Checked the problems pane, it seems it is related to log4j jar file, I
  found
  --
  Description ResourcePathLocationType
  The container 'Apache Tomcat v6.0 [Apache Tomcat v6.0]' references non
  existing library /usr/share/tomcat6/lib/log4j-6.0.26.jarTestTomcat
  Build path  Build Path Problem
  --
  
  I checked my tomcat directrory, I have log4j.jar and a linik file
  log4j-6.0.26.jar.
  
  What I noticed is that this link file is flagged with a lock image on
  the file icon  besides it.
  
  All other jars are there well seen in the build bath except this one
  flagged with red
  What is needed to be done ?
 
 No idea. The default install from the ASF does not use log4j. Your
 options are:
 -contact the maintainers of whatever 3rd party package you used for support
 - use an ASF distribution
 
 Mark
 
 -
 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: Dynamic GlobalNamingResources / Shared JDBC connection pools

2010-11-18 Thread Mark Thomas
On 18/11/2010 17:02, Rob Gregory wrote:
 Awww... Is there going to be a replacement for the ServerFactory?

You need to get a reference to a Container (Context/Host/Engine) and
then navigate Context-Host-Engine-Service-Server

How you get the reference depends on where you start from.

 Also what sort out timescales are you looking at before a production release 
 of Tomcat 7 is available?

http://markmail.org/message/7nwn6v22hcyikuob

So far, 7.0.4 has gone fairly well. There hasn't yet been anything that
has really worried me. If things go to plan, there should be a 7.0.5
fairly soon.

Mark

 
 Thanks Again.
 Rob
 
 
 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: 18 November 2010 16:59
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

 On 18/11/2010 16:54, Rob Gregory wrote:
 Spot on Mark.

 I have been googling and playing around for over a day on this, Following
 your suggestion it boils down to a couple of lines of code:-

 StandardServer server = (StandardServer) ServerFactory.getServer();
 Context context = server.getGlobalNamingContext();
 context.bind(dataSourceName, datasource);

 Thanks again for the push in the right direction.

 No problem. Just be aware ServerFactory is gone in 7.0.x.

 Mark


 Rob


 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org]
 Sent: 18 November 2010 10:30
 To: Tomcat Users List
 Subject: Re: Dynamic GlobalNamingResources / Shared JDBC connection pools

 On 18/11/2010 09:34, Rob Gregory wrote:
 Thanks Chris,

 After messing around with JNDI yesterday I came to the same conclusion
 that
 Tomcat is doing some isolation

 Random thoughts that may or may not help.

 If you look in the DataSourceRealm you will see some code that lets a
 web-app use a DataSource from either webapp JNDI or global JNDI. That
 might give you some pointers.

 Also, I'm pretty sure there is some write protection applied to the
 global JNDI somewhere. That might also get in your way.

 Mark

 -
 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: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Caldarale, Charles R
 From: Salam Y. ELIAS [mailto:salamli...@free.fr] 
 Subject: Re: Tomact does not see log4j-6.0.26.jar while it is there

 It is the Apache Tomcat shipped with Fedora 13

To repeat what Mark said:

  -contact the maintainers of whatever 3rd party package you used for support
  - use an ASF distribution

I didn't see any Tomcat issues in your original post, just an IDE question - so 
you might also consider using whatever support mechanism exists for your IDE.

If you want to try installing a real Tomcat from tomcat.apache.org and run 
that, we'd be glad to look at any issues you might have.

 - 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: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
Chris, here is the output, I highlighted the log4j lines
Thanks

-rw-r--r-- 1 root root 15232 Oct 12 22:43 annotations-api-6.0.26.jar
lrwxrwxrwx 1 root root26 Nov 16 19:41 annotations-api.jar -
annotations-api-6.0.26.jar
-rw-r--r-- 1 root root   1182597 Oct 12 22:43 catalina-6.0.26.jar
-rw-r--r-- 1 root root 53695 Oct 12 22:43 catalina-ant-6.0.26.jar
lrwxrwxrwx 1 root root23 Nov 16 19:41 catalina-ant.jar -
catalina-ant-6.0.26.jar
-rw-r--r-- 1 root root128233 Oct 12 22:43 catalina-ha-6.0.26.jar
lrwxrwxrwx 1 root root22 Nov 16 19:41 catalina-ha.jar -
catalina-ha-6.0.26.jar
lrwxrwxrwx 1 root root19 Nov 16 19:41 catalina.jar -
catalina-6.0.26.jar
-rw-r--r-- 1 root root234698 Oct 12 22:43 catalina-tribes-6.0.26.jar
lrwxrwxrwx 1 root root26 Nov 16 19:41 catalina-tribes.jar -
catalina-tribes-6.0.26.jar
-rw-r--r-- 1 root root569454 Oct 12 22:43
jakarta-commons-collections.jar
lrwxrwxrwx 1 root root40 Nov 16 19:41 jakarta-commons-dbcp.jar
- /usr/share/java/jakarta-commons-dbcp.jar
lrwxrwxrwx 1 root root40 Nov 16 19:41 jakarta-commons-pool.jar
- /usr/share/java/jakarta-commons-pool.jar
-rw-r--r-- 1 root root542469 Oct 12 22:43 jasper-6.0.26.jar
-rw-r--r-- 1 root root108450 Oct 12 22:43 jasper-el-6.0.26.jar
lrwxrwxrwx 1 root root20 Nov 16 19:41 jasper-el.jar -
jasper-el-6.0.26.jar
lrwxrwxrwx 1 root root17 Nov 16 19:41 jasper.jar -
jasper-6.0.26.jar
lrwxrwxrwx 1 root root23 Nov 16 19:41 jasper-jdt.jar
- /usr/share/java/ecj.jar
lrwxrwxrwx 1 root tomcat   5 Nov 16 19:42 log4j-6.0.26.jar - log4j
-rw-r--r-- 1 root tomcat  378088 Oct 12 22:43 log4j.jar
lrwxrwxrwx 1 root root32 Nov 16 19:41
tomcat6-el-2.1-api-6.0.26.jar - ../tomcat6-el-2.1-api-6.0.26.jar
lrwxrwxrwx 1 root root33 Nov 16 19:41
tomcat6-jsp-2.1-api-6.0.26.jar - ../tomcat6-jsp-2.1-api-6.0.26.jar
lrwxrwxrwx 1 root root37 Nov 16 19:41
tomcat6-servlet-2.5-api-6.0.26.jar
- ../tomcat6-servlet-2.5-api-6.0.26.jar
-rw-r--r-- 1 root root757790 Oct 12 22:43 tomcat-coyote-6.0.26.jar
lrwxrwxrwx 1 root root24 Nov 16 19:41 tomcat-coyote.jar -
tomcat-coyote-6.0.26.jar
-rw-r--r-- 1 root root 69874 Oct 12 22:43 tomcat-i18n-es-6.0.26.jar
lrwxrwxrwx 1 root root25 Nov 16 19:41 tomcat-i18n-es.jar -
tomcat-i18n-es-6.0.26.jar
-rw-r--r-- 1 root root 51809 Oct 12 22:43 tomcat-i18n-fr-6.0.26.jar
lrwxrwxrwx 1 root root25 Nov 16 19:41 tomcat-i18n-fr.jar -
tomcat-i18n-fr-6.0.26.jar
-rw-r--r-- 1 root root 54489 Oct 12 22:43 tomcat-i18n-ja-6.0.26.jar
lrwxrwxrwx 1 root root25 Nov 16 19:41 tomcat-i18n-ja.jar -
tomcat-i18n-ja-6.0.26.jar
lrwxrwxrwx 1 root root35 Nov 16 19:41 tomcat-juli*
- /usr/share/tomcat6

On Thu, 2010-11-18 at 10:19 -0500, Christopher Schultz wrote:

 ls -l /usr/share/tomcat6/lib/


RE: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Salam Y. ELIAS
OK thanks
On Thu, 2010-11-18 at 11:19 -0600, Caldarale, Charles R wrote:
  From: Salam Y. ELIAS [mailto:salamli...@free.fr] 
  Subject: Re: Tomact does not see log4j-6.0.26.jar while it is there
 
  It is the Apache Tomcat shipped with Fedora 13
 
 To repeat what Mark said:
 
   -contact the maintainers of whatever 3rd party package you used for 
   support
   - use an ASF distribution
 
 I didn't see any Tomcat issues in your original post, just an IDE question - 
 so you might also consider using whatever support mechanism exists for your 
 IDE.
 
 If you want to try installing a real Tomcat from tomcat.apache.org and run 
 that, we'd be glad to look at any issues you might have.
 
  - 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 hung

2010-11-18 Thread Robillard, Greg L
thx

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Thursday, November 18, 2010 10:23 AM
To: Tomcat Users List
Subject: EXTERNAL: RE: Tomcat hung

 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com]
 Subject: RE: Tomcat hung

 Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) 
 Server VM (build 10.0-b19, mixed mode)

 Last I checked, this is a real VM.

Yes, it was identifying it just as 10.0-b19 that was confusing.

You might want to upgrade, since 1.6.0_05 is quite old and lots of fixes have 
gone in since then.

 - 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: [OT] RE: Tomcat Consultant

2010-11-18 Thread David Fisher
I recently heard the story about how PL/1 got its name. I heard this recently 
from my brother who worked with the son of the inventor of APL, Kenneth E. 
Iverson.

It was at IBM and APL was developed only the inventor wanted to call it The 
Programming Language - TPL. When it went to the committee he was you can't call 
it that there already is a TPL project. Outcome - neither language got the name 
TPL - instead we have APL and PL/1.

Dave

On Sep 29, 2010, at 3:31 PM, Allen Razdow wrote:

 OK, the I'm gray-haired and remember when memory was core game ;-), I was
 a regular Multics user myself, on MIT's Honeywell machines (with drum
 disks), as well as an assembler programmer on PDP-1, 4 and 9.  The 4 had a
 125 kHz clock speed. I vaguely remember the PIC OS, but haven't googled it
 yet. 
 
 -Allen
 
 -Original Message-
 From: David Fisher [mailto:dfis...@jmlafferty.com]
 Sent: Wednesday, September 29, 2010 5:41 PM
 To: Tomcat Users List
 Subject: Re: [OT] RE: Tomcat Consultant
 
 PL/1 was a nice break from extending FORTRAN IV with BAL (Assembler).
 
 Wow real pointers and character strings!
 
 I seem to recall there was a version on the Prime minicomputers - IRC
 they had a version of the PIC OS.
 
 Primos came out of the Boston area, was a son of Multics and a brother
 OS to Unix. Wiki proves my memory fairly accurate -
 http://en.wikipedia.org/wiki/Prime_Computer
 
 
 That's the system I worked on. At one point, I worked in a university
 environ and had access to source.  We did a few tweaks to allow better
 support for hundreds of students, or the occasional custom tool/command.
 It was really nice to work in something like PL/P for that stuff.
 
 I'm not sure what you meant by PIC OS, unless you meant the Pick
 Database model, which was originally implemented as a combined OS/DB
 setup.  Prime did offer a version of the DB model, called INFORMATION,
 which ran on the standard OS.  It was a really nice rapid deployment
 engine.
 
 That's it. I couldn't recall because I didn't use it. We used the MIDAS
 database which transitioned pretty well from home grown assembler based /
 hash indexed keys.
 
 They also had a version of Oracle available for it, though I never used
 it.  I had used some other 3rd-party relational DB products, and
 INFORMATION ran rings around them.  The Pick data model was designed with
 standard business data in mind, so it had some useful features that ran
 fairly fast.  I work in Oracle now, and am quite impressed with its speed,
 but having to do all those table joins can sometimes be a real pain.
 
 We went with Oracle 5/6 when my boss spun out as an independent and we
 migrated to Sun in 1991. Oracle had an interesting Hypercard Stack
 interface for Macs around then. Only trouble for me is it wouldn't save
 your sql ddl, it was the schema.
 
 
 
 On Sep 28, 2010, at 12:52 PM, Jeffrey Janner wrote:
 
 PL/1, boy that brings back memories.
 I worked for years on a mini-computer who's O/S was written using a
 combination of a PL/1 subset and machine code.  Really nice, Unix-like
 O/S, that had Unix beat in some areas, lacked behind it in others.
 Really kind of miss it these days.
 However, I don't think it really took 4+ years to really learn PL/1.
 I seemed to have pretty well mastered it in a semester -- maybe a
 little longer.  I really liked how easy it was to get done what you
 needed to do.  And you'd think with IBM's clout it would have gotten
 better penetration, but they seemed more intent on other technologies.
 Probably not enough commission in it compared to COBOL.
 
 -Original Message-
 From: michel [mailto:compu...@videotron.ca]
 Sent: Friday, September 24, 2010 8:50 PM
 To: Tomcat Users List
 Subject: Re: Tomcat Consultant
 
 Don't know about you, but I was left really, really worried about
 actually
 being on a project under those conditions.
 
 
 Lots of room for doing a crash-and-burn ...
 
 
 Back when I started in the business in 1982 I had to learn PL-1, the
 best
 darned language that never managed  to get a good market share. It
 was
 said
 that it took four years to really learn how to use it. These days
 all
 you
 need is a crash course to be an expert!
 
 
 
 
 
 
 - Original Message -
 From: Brian bbprefix-m...@yahoo.com
 To: 'Tomcat Users List' users@tomcat.apache.org
 Sent: Friday, September 24, 2010 9:42 PM
 Subject: RE: Tomcat Consultant
 
 
 That is true sometimes. I was hired by Arthur Andersen (RIP), they
 sent
 me
 to an SAP crash-course, the tipe of course that shows you zillions
 of
 Powerpoint slides and you get out of the course with tons of doubts.
 Then
 they sent me directly to a proyect, and I bet they billed a lot for
 my
 time.
 I was introduced as an experienced SAP consultant.
 
 
 -Original Message-
 From: michel [mailto:compu...@videotron.ca]
 Sent: Friday, September 24, 2010 07:35 PM
 To: Tomcat Users List
 Subject: Re: Tomcat Consultant
 
 I once worked for a consulting company that wasn't  a 

Re: Tomcat, JasperServer, and JAR files

2010-11-18 Thread Thangalin
Hi,

 In the first case, multiple applications using JasperReports
  will result in a gross waste of resources

 I would categorize it as a trivial waste of resources.  Have you checked
 the price of disk and RAM lately?


Sure. The machine has 8 GB of RAM. 7 GB used by the (100 GB) PostgreSQL; X,
Linux, and Tomcat take up the rest. Are you offering to buy me more RAM? Not
everybody in the world has $120 to throw at more RAM, plus other hardware
upgrades that can ripple down. What is trivial to some might not be a
trivial expense to others.

JasperReports can easily allocate 200 MB per instance (to generate PDFs).
That's 200 MB sitting around in RAM that I would rather not needlessly throw
away per application, when all the applications *must* use the same version
of JasperReports.


  still does not resolve the problem of having to bundle
 That's not a problem, that's an advantage.


And a disadvantage for us non-Rockefeller types. ;-) (You need not mention
developer time vs. hardware expense; it isn't applicable here: there are
times when funding is not available.)


 Which would be unacceptable in any kind of production environment I'm
 familiar with.  I want


I mentioned that this was for a *development environment*.

Basically, I want to have a single copy of iReport that, when upgraded,
upgrades the applications running under Tomcat as well. I have a solution in
place (make a version of setenv.bat that creates the lazy and crutch-like
CLASSPATH environment variable and then passes the variable along), but I
was told that there are other possibilities. I have not yet read any *
practical* solution that require less effort from a maintenance perspective.
That is, the simplest process is:

   1. Upgrade iReport.
   2. Restart Tomcat.

An alternative is (without duplicating, bundling, and deploying gargantuan
WAR files):

   1. Upgrade iReport.
   2. Upgrade the files in Tomcat's common directory.
   3. Restart Tomcat.

Step 2 is a manual process dependent on upgrading iReport, and is a scenario
I want to avoid.

Dave


Re: Tomcat, JasperServer, and JAR files

2010-11-18 Thread Mark Thomas
On 18/11/2010 18:42, Thangalin wrote:
 Step 2 is a manual process dependent on upgrading iReport, and is a scenario
 I want to avoid.

Modify catalina.properties to restore the shared loader and put the
JasperReport JARs in there.

Mark

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



RE: [OT] RE: Tomcat Consultant

2010-11-18 Thread Martin Gainty

amazing that all of the language battles lead to a Pyrrhic victory

speaking of languages ..which languages does IBM currently support?

thanks,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

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.



 

 Subject: Re: [OT] RE: Tomcat Consultant
 From: dfis...@jmlafferty.com
 Date: Thu, 18 Nov 2010 10:34:18 -0800
 To: users@tomcat.apache.org
 
 I recently heard the story about how PL/1 got its name. I heard this recently 
 from my brother who worked with the son of the inventor of APL, Kenneth E. 
 Iverson.
 
 It was at IBM and APL was developed only the inventor wanted to call it The 
 Programming Language - TPL. When it went to the committee he was you can't 
 call it that there already is a TPL project. Outcome - neither language got 
 the name TPL - instead we have APL and PL/1.
 
 Dave
 
 On Sep 29, 2010, at 3:31 PM, Allen Razdow wrote:
 
  OK, the I'm gray-haired and remember when memory was core game ;-), I was
  a regular Multics user myself, on MIT's Honeywell machines (with drum
  disks), as well as an assembler programmer on PDP-1, 4 and 9. The 4 had a
  125 kHz clock speed. I vaguely remember the PIC OS, but haven't googled it
  yet. 
  
  -Allen
  
  -Original Message-
  From: David Fisher [mailto:dfis...@jmlafferty.com]
  Sent: Wednesday, September 29, 2010 5:41 PM
  To: Tomcat Users List
  Subject: Re: [OT] RE: Tomcat Consultant
  
  PL/1 was a nice break from extending FORTRAN IV with BAL (Assembler).
  
  Wow real pointers and character strings!
  
  I seem to recall there was a version on the Prime minicomputers - IRC
  they had a version of the PIC OS.
  
  Primos came out of the Boston area, was a son of Multics and a brother
  OS to Unix. Wiki proves my memory fairly accurate -
  http://en.wikipedia.org/wiki/Prime_Computer
  
  
  That's the system I worked on. At one point, I worked in a university
  environ and had access to source. We did a few tweaks to allow better
  support for hundreds of students, or the occasional custom tool/command.
  It was really nice to work in something like PL/P for that stuff.
  
  I'm not sure what you meant by PIC OS, unless you meant the Pick
  Database model, which was originally implemented as a combined OS/DB
  setup. Prime did offer a version of the DB model, called INFORMATION,
  which ran on the standard OS. It was a really nice rapid deployment
  engine.
  
  That's it. I couldn't recall because I didn't use it. We used the MIDAS
  database which transitioned pretty well from home grown assembler based /
  hash indexed keys.
  
  They also had a version of Oracle available for it, though I never used
  it. I had used some other 3rd-party relational DB products, and
  INFORMATION ran rings around them. The Pick data model was designed with
  standard business data in mind, so it had some useful features that ran
  fairly fast. I work in Oracle now, and am quite impressed with its speed,
  but having to do all those table joins can sometimes be a real pain.
  
  We went with Oracle 5/6 when my boss spun out as an independent and we
  migrated to Sun in 1991. Oracle had an interesting Hypercard Stack
  interface for Macs around then. Only trouble for me is it wouldn't save
  your sql ddl, it was the schema.
  
  
  
  On Sep 28, 2010, at 12:52 PM, Jeffrey Janner wrote:
  
  PL/1, boy that brings back memories.
  I worked for years on a mini-computer who's O/S was written using a
  combination of a PL/1 subset and machine code. Really nice, Unix-like
  O/S, that had Unix beat in some areas, lacked behind it in others.
  Really kind of miss it these days.
  However, I don't think it really took 4+ years to really learn PL/1.
  I seemed to have pretty well mastered it in a semester -- maybe a
  little longer. I really liked how easy it was to get done what you
  needed to do. And you'd think with IBM's clout it would have gotten
  better penetration, but they seemed more intent on other technologies.
  Probably not enough commission in it compared to 

Re: Tomcat Consultant

2010-11-18 Thread Pid
On 24/09/2010 18:25, tdelesio wrote:
 
 My fortune 500 company is testing a pilot for switching over a J2EE web app
 over from Web Sphere application server to Tomcat and we are looking for a
 consultant to setup a crusted production instance of tomcat.  Does anyone
 have any recommendations for a top notch consulting firm that could provide
 these services?
 

http://wiki.apache.org/tomcat/SupportAndTraining


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Tomcat Consultant

2010-11-18 Thread Pid
On 18/11/2010 19:35, Pid wrote:
 On 24/09/2010 18:25, tdelesio wrote:

 My fortune 500 company is testing a pilot for switching over a J2EE web app
 over from Web Sphere application server to Tomcat and we are looking for a
 consultant to setup a crusted production instance of tomcat.  Does anyone
 have any recommendations for a top notch consulting firm that could provide
 these services?

 
 http://wiki.apache.org/tomcat/SupportAndTraining


Doh. Doh and double doh.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: how to setup HOME_PATH for Java and CATALINA_HOME

2010-11-18 Thread Mark Eggers
From this and other messages, it looks like you're running everything 
installed 
from the Fedora distribution.

While I run Fedora (just upgraded to Fedora 14), I don't use any of the 
distribution-supplied packages for Java, Tomcat, or the IDE (my preference 
being 
NetBeans).

To get the Oracle / Sun Java installed, just download the appropriate files 
from 
Oracle. If you use the RPM packages, you can then use the alternatives program 
to switch between the various implementations.

A detailed discussion on Fedora's Java implementation can be found here:

http://fedoraproject.org/wiki/Java

Then you will need to either inject Oracle's Java into the path before the 
Fedora-supplied Java or use the alternatives program to configure and switch 
between Java packages. The latter is more in line with the OS, while the former 
is what I currently do.

Here's one link on how to use the alternatives program:

http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-6-on-fedora-centos-red-hat-rhel/


I took a brief look at the Fedora-supplied Tomcat. As with many other 
distributions, the software is split across multiple packages, and contains 
extraneous material.

If you're doing development, it's far easier to download a copy of Tomcat from 
tomcat.apache.org, unpack it somewhere handy, and then run it. I maintain 
multiple copies of Tomcat in ~/Apache along with various modifications to run 
Solr, Jetspeed, OpenPortal, Pluto, some virtual hosts, and some clusters. No, I 
don't run all of these at once.

Your other problem is when you start using log4j in your application and want 
to 
build the war file. Normally when you add a server to NetBeans or (I presume) 
Eclipse, the IDE will use the server-supplied jar files to resolve references. 
The IDE will base which jars to pull from the server based on the type of 
server 
you've defined for a particular project.

The problem is that Tomcat (as others have pointed out) does not come with 
log4j 
by default. If Eclipse is using the default definition of Tomcat, then a log4j 
jar file will not be included in the build path since the default installation 
does not have it.

If you are set on running your application with Fedora's Tomcat distribution, 
then you will have to include log4j in your Eclipse project, but have it not 
added to the war file. If you are using a stock version of Tomcat, then you 
will 
have to add log4j to your project for both compilation and creation of the war.

Since I don't normally use Eclipse, I have no real idea how to do this.

My personal preferences are:

1. Install Java JRE/SDK/Docs from Oracle
   Either alter the path or use alternatives to manage multiple Java versions
2. Install Tomcat from ASF into my home directory for development
3. Install IDE of choice from that vendor.

This makes getting help from the various mailing lists (Java, IDE, Tomcat) much 
easier.

The only downside is that you will have to manage updates for these components 
manually. However, at least Java can be managed via yum (just download the RPM 
packages from Oracle).

. . . . just my two cents

/mde/

- Original Message 
From: Salam Y. ELIAS salamli...@free.fr
To: users@tomcat.apache.org
Sent: Thu, November 18, 2010 1:46:54 AM
Subject: how to setup HOME_PATH for Java and CATALINA_HOME

I need to set up the environment variable JAVA_HOME and and
CATALINA_HOME to start some web and Java EE,  am  little bit confused
with conflicting information. 
When I run 
java -version
ie get
java version 1.6.0_18
OpenJDK Runtime Environment (IcedTea6 1.8.2)
(fedora-43.1.8.2.fc13-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

When I run which java

I get
/usr/bin/java[/QUOTE]

checking my usr/share I see several directories
java (full of files and directories)
java-1.3.0 (1 jar in it)
java-1.3.1 (empty)
java-1.4.0 (empty)
java-1.5.0 (empty)
java-1.6.0 (empty)
java-1.7.0 (empty)

Issuing the echo %PATH gives the following


/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/salam/bin



In eclipse helios 3.6, I see in preferences  Java I have 

/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64


How one can check that he has Java EE setup correctly with Apache Tomcat
6 ?

I have Apache Tomcat up and running and need to setup CATALINA_HOME. 
In the usr/share/java directory, I have a directory tomcat6 as well as
a tomcat6 directory in /usr/share/. In Eclipse, when I try to add a
server, eclipse doesnt see that I have a type of tomcat server.

I have found so many articles on the web but no 2 articles are similar.
I tried to browse Sun's Path setup tutorial but it seems it is not
available anymore.

Thanks for your help


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

Tomcat, JasperReports, and JAR files

2010-11-18 Thread Thangalin
Hi,

Setting *shared.loader* in catalina.properties is a nearly perfect solution.
Thank you.

One minor, but significant, technical issue remains: iReports ships with a
JAR file (jdt-compiler-3.1.1.jar) that conflicts with a JAR file shipped
with Tomcat (ecj-3.6.jar, if memory serves).

Can I add the jdt-compiler file to *
tomcat.util.scan.DefaultJarScanner.jarsToSkip* to prevent it from being
loaded? If not, how would you recommend appending iReport's libraries (e.g.,
C:\Program Files\Jaspersoft\iReport-3.7.4\ireport\modules\ext\*.jar except
jdt-compiler-3.1.1.jar)?

I thought about creating a script (setenv) that recreates *
catalina.properties*, appending all the JAR files it needs, except for those
that conflict. The idea of recreating the file just before Tomcat starts (or
shuts down) seems like disaster waiting in the wings.

Thanks again,
Dave


Re: Tomcat, JasperReports, and JAR files

2010-11-18 Thread Mark Thomas
On 18/11/2010 20:30, Thangalin wrote:
 Hi,
 
 Setting *shared.loader* in catalina.properties is a nearly perfect solution.
 Thank you.
 
 One minor, but significant, technical issue remains: iReports ships with a
 JAR file (jdt-compiler-3.1.1.jar) that conflicts with a JAR file shipped
 with Tomcat (ecj-3.6.jar, if memory serves).

What happens if you just remove jdt-compiler-3.1.1.jar?

Mark

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



Re: Tomcat, JasperReports, and JAR files

2010-11-18 Thread Thangalin
Then iReport no longer works.

Dave


Re: Tomcat, JasperReports, and JAR files

2010-11-18 Thread Mark Thomas
On 18/11/2010 20:46, Thangalin wrote:
 Then iReport no longer works.

OK. How about:
- Copy the JARs to another directory, remove the ones that conflict.
Point shared.loader to the copy
- List each JAR (less conflicts) in shared.loader rather than using
wildcards.

Mark

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



Re: Tomcat, JasperReports, and JAR files

2010-11-18 Thread Thangalin
That is Step 2 in the 3-step process I want to avoid:

   1. Upgrade iReport.
   2. Upgrade the files in Tomcat's common directory (i.e., copy the JAR
   files).
   3. Restart Tomcat.

This is what I would like to do (that I have a working solution for, by the
way, but involves setting the CLASSPATH variable, which I have been told is
poor form) is:

   1. Upgrade iReport.
   2. Restart Tomcat.

Dave


RE: Tomcat Consultant

2010-11-18 Thread Leo Donahue - PLANDEVX
-Original Message-
From: Pid [mailto:p...@pidster.com]
Subject: Re: Tomcat Consultant

On 18/11/2010 19:35, Pid wrote:
 On 24/09/2010 18:25, tdelesio wrote:

 My fortune 500 company is testing a pilot for switching over a J2EE
 web app over from Web Sphere application server to Tomcat and we are
 looking for a consultant to setup a crusted production instance of
 tomcat.  Does anyone have any recommendations for a top notch
 consulting firm that could provide these services?


 http://wiki.apache.org/tomcat/SupportAndTraining


Doh. Doh and double doh.


p

Um, can anyone translate this?  Am I really seeing that?
http://training.mulesoft.com/about/index.html


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



Re: Tomcat Consultant

2010-11-18 Thread Pid
On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Tomcat Consultant

 On 18/11/2010 19:35, Pid wrote:
 On 24/09/2010 18:25, tdelesio wrote:

 My fortune 500 company is testing a pilot for switching over a J2EE
 web app over from Web Sphere application server to Tomcat and we are
 looking for a consultant to setup a crusted production instance of
 tomcat.  Does anyone have any recommendations for a top notch
 consulting firm that could provide these services?


 http://wiki.apache.org/tomcat/SupportAndTraining


 Doh. Doh and double doh.


 p
 
 Um, can anyone translate this?  Am I really seeing that?

I replied to an old message.  My mail client showed the first in the
thread  didn't load the rest until after I'd sent a reply.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Tomcat Consultant

2010-11-18 Thread Asangansi
It looks like a web page template to me.

skype: asangansi.ini
+47 48295638



On Thu, Nov 18, 2010 at 10:04 PM, Leo Donahue - PLANDEVX 
leodona...@mail.maricopa.gov wrote:

 -Original Message-
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Tomcat Consultant
 
 On 18/11/2010 19:35, Pid wrote:
  On 24/09/2010 18:25, tdelesio wrote:
 
  My fortune 500 company is testing a pilot for switching over a J2EE
  web app over from Web Sphere application server to Tomcat and we are
  looking for a consultant to setup a crusted production instance of
  tomcat.  Does anyone have any recommendations for a top notch
  consulting firm that could provide these services?
 
 
  http://wiki.apache.org/tomcat/SupportAndTraining
 
 
 Doh. Doh and double doh.
 
 
 p

 Um, can anyone translate this?  Am I really seeing that?
 http://training.mulesoft.com/about/index.html


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




Re: Tomcat Consultant

2010-11-18 Thread Mark Thomas
On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 Um, can anyone translate this?  Am I really seeing that?
 http://training.mulesoft.com/about/index.html

It looks like Latin to me. Google translate will take a stab at it on
that basis.

Best guess, someone at Mulesoft's idea of a joke (not sure where the
humour is) or their website has been hacked.

Mark

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



RE: Tomcat Consultant

2010-11-18 Thread Eric Hawkes
Hi,

It is not Latin or a joke or the results of hacking.
The text is lorem ipsum: http://en.wikipedia.org/wiki/Lorem_ipsum

The guess about it being a web page template was probably closest.

Thanks,

Eric


-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Thursday, November 18, 2010 1:09 PM
To: Tomcat Users List
Subject: Re: Tomcat Consultant

On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 Um, can anyone translate this?  Am I really seeing that?
 http://training.mulesoft.com/about/index.html

It looks like Latin to me. Google translate will take a stab at it on
that basis.

Best guess, someone at Mulesoft's idea of a joke (not sure where the
humour is) or their website has been hacked.

Mark

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

2010-11-18 Thread Mark Thomas
On 18/11/2010 21:11, Eric Hawkes wrote:
 Hi,
 
 It is not Latin or a joke or the results of hacking.
 The text is lorem ipsum: http://en.wikipedia.org/wiki/Lorem_ipsum
 
 The guess about it being a web page template was probably closest.

Ah, that makes more sense. Odd that it is showing that though. One
assumes there was some real text there at some point. Maybe a site
redesign in progress.

Mark

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



Re: Tomcat Consultant

2010-11-18 Thread André Warnier

Mark Thomas wrote:

On 18/11/2010 21:11, Eric Hawkes wrote:

Hi,

It is not Latin or a joke or the results of hacking.
The text is lorem ipsum: http://en.wikipedia.org/wiki/Lorem_ipsum

The guess about it being a web page template was probably closest.


Ah, that makes more sense. Odd that it is showing that though. One
assumes there was some real text there at some point. Maybe a site
redesign in progress.

I would hope so for them, because at least with Firefox, it does not get better when you 
try the tabs.  A bit confusing to say the least.


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



RE: Tomcat Consultant

2010-11-18 Thread Martin Gainty

can we get someone from the vatican to translate?

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

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, 18 Nov 2010 21:08:37 +
 From: ma...@apache.org
 To: users@tomcat.apache.org
 Subject: Re: Tomcat Consultant
 
 On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
  Um, can anyone translate this? Am I really seeing that?
  http://training.mulesoft.com/about/index.html
 
 It looks like Latin to me. Google translate will take a stab at it on
 that basis.
 
 Best guess, someone at Mulesoft's idea of a joke (not sure where the
 humour is) or their website has been hacked.
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  

Re: Tomcat Consultant

2010-11-18 Thread Daniel Savard
That's an Opus Dei owned company, I fear. Unless you are seeking for
the anti-matter thing, you should rather than stay away of it.

2010/11/18 Martin Gainty mgai...@hotmail.com

 can we get someone from the vatican to translate?

 Martin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité


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



Re: Assistance determining cause of httpd error log entries

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

On 11/18/2010 10:42 AM, David Dabbs wrote:
 We're using mod_proxy_ajp. I'm considering adding the following to my Apache
  Tomcat configs
 In Apache httpd.confProxyIOBufferSize 19456  # like max_packet_size
 I think
 LimitRequestFieldSize 18342In Tomcat server.xmlConnector port=8009
 protocol=AJP/1.3
maxThreads=2048 minSpareThreads=50 maxSpareThreads=200
enableLookups=false
packetSize=20480
 /

You'll definitely have to ensure that the packet sizes match each other.

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

iEYEARECAAYFAkzlrckACgkQ9CaO5/Lv0PAYGACfchVMuwoqJa3wxpcQEGVqdCOV
uwcAn345mH9wxrsBx4BjSWqmxDQRi+sY
=AtG9
-END PGP SIGNATURE-

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



Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

André,

On 11/18/2010 12:11 PM, André Warnier wrote:
 Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 André,

 On 11/17/2010 4:50 PM, André Warnier wrote:
 I found the following trick somewhere, maybe it works for you :

 When starting your JVM, use a line like

 java -Dpid=$$ program.java
 and in the java program using the statement System.getProperty(pid);

 If it works, it's cute, and certainly a lot less overhead.

 Doesn't that set the pid system property to the pid of the shell that
 launched the JVM?

 Now that you mention it, I think so too.

Something that looks suspiciously like the above, but would probably
work is this:

(exec java -Dpid=$$ program.java)

Since the shell (well, bash anyway) will execute the expression in
parens within a child process and then the 'exec' will replace the
process with another, the $$ magic works.

 Another question is whether it would be possible to delay the
 interpretation of the $$ until such time as when the JVM looks at it.
 Something like : java -Dpid='$$' ...
 (is there a way to tell java to get the value of an environment variable
 when it starts running ? I thought there was something of the kind. But
 maybe that variable is not set then. I am a bit confused now.)

$$ is entirely a shell notion: other processes wouldn't know what $$
meant unless they were specifically programmed to. If the JVM were one
of those things, you'd expect that you could call
System.getCurrentProcessId or something like that. :(

 Maybe we should turn the problem around though.
 If Leon wanted the PID, it was obviously to do something with it later.
 What do you do with a PID ?  Usually, one uses it to send a signal to a
 process.
 And sending a signal to a process, Unix-like, is not likely to be very
 multi-platform in the first place.
 So maybe finding a purely Java-based alternative to do what Leon wants
 to do with the PID would be more productive in the long run ?

+1

You also might want to kill it. In either case, most JVMs are running on
win32 or UNIX-like OSs, and they both support signals.

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

iEYEARECAAYFAkzlr00ACgkQ9CaO5/Lv0PDBjgCguhUMErvQ+pUyNZ56whBiQC9W
uUMAoKiRheNTWp4xFAPB2IPFhK71Iion
=bReB
-END PGP SIGNATURE-

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



Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-11-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Salam,

On 11/18/2010 12:21 PM, Salam Y. ELIAS wrote:
 Chris, here is the output, I highlighted the log4j lines
 Thanks
 
 -rw-r--r-- 1 root root 15232 Oct 12 22:43 annotations-api-6.0.26.jar
 lrwxrwxrwx 1 root root26 Nov 16 19:41 annotations-api.jar -
 annotations-api-6.0.26.jar

Wow, this is likely to cause all sorts of problems because every JAR
file appears (at least to the JVM) to be duplicated. You may get lots of
class loading issues by doing this.

 lrwxrwxrwx 1 root tomcat   5 Nov 16 19:42 log4j-6.0.26.jar - log4j
 -rw-r--r-- 1 root tomcat  378088 Oct 12 22:43 log4j.jar

Looks like your log4j-6.0.26.jar link is:

1. Pointing the wrong way
2. Broken (missing .jar at the end)

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

iEYEARECAAYFAkzlr8oACgkQ9CaO5/Lv0PAjhQCeIxAaRfh2Sj8BaNRn22/BS2ij
b4gAn2iPz4fSrG1cY3KHyfccluDZ7rxm
=LIaV
-END PGP SIGNATURE-

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



Re: Tomcat Consultant

2010-11-18 Thread Pid
On 18/11/2010 21:52, Martin Gainty wrote:
 
 can we get someone from the vatican to translate?

I think there's a couple of Cardinals lurking on the list, but you might
have to wait until it's working hours in Europe again.


p

 Martin Gainty 
 __ 
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
 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, 18 Nov 2010 21:08:37 +
 From: ma...@apache.org
 To: users@tomcat.apache.org
 Subject: Re: Tomcat Consultant

 On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 Um, can anyone translate this? Am I really seeing that?
 http://training.mulesoft.com/about/index.html

 It looks like Latin to me. Google translate will take a stab at it on
 that basis.

 Best guess, someone at Mulesoft's idea of a joke (not sure where the
 humour is) or their website has been hacked.

 Mark

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

 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [OT] How to obtain the id of the current process

2010-11-18 Thread André Warnier

Christopher Schultz wrote:


You also might want to kill it. In either case, most JVMs are running on
win32 or UNIX-like OSs, and they both support signals.


Win32 supports signals ?

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



Re: [OT] How to obtain the id of the current process

2010-11-18 Thread André Warnier

André Warnier wrote:

Christopher Schultz wrote:


You also might want to kill it. In either case, most JVMs are running on
win32 or UNIX-like OSs, and they both support signals.


Win32 supports signals ?

Well yes, kind of, apparently : 
http://msdn.microsoft.com/en-us/library/xdkz3x12%28VS.71%29.aspx




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



Re: how to setup HOME_PATH for Java and CATALINA_HOME

2010-11-18 Thread Salam Y. ELIAS
So many thanks for the detailed explanation. I use eclipse 3.6 but not
the one shipped with fedora 13

Regards
On Thu, 2010-11-18 at 12:08 -0800, Mark Eggers wrote:
 From this and other messages, it looks like you're running everything 
 installed 
 from the Fedora distribution.
 
 While I run Fedora (just upgraded to Fedora 14), I don't use any of the 
 distribution-supplied packages for Java, Tomcat, or the IDE (my preference 
 being 
 NetBeans).
 
 To get the Oracle / Sun Java installed, just download the appropriate files 
 from 
 Oracle. If you use the RPM packages, you can then use the alternatives 
 program 
 to switch between the various implementations.
 
 A detailed discussion on Fedora's Java implementation can be found here:
 
 http://fedoraproject.org/wiki/Java
 
 Then you will need to either inject Oracle's Java into the path before the 
 Fedora-supplied Java or use the alternatives program to configure and switch 
 between Java packages. The latter is more in line with the OS, while the 
 former 
 is what I currently do.
 
 Here's one link on how to use the alternatives program:
 
 http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-6-on-fedora-centos-red-hat-rhel/
 
 
 I took a brief look at the Fedora-supplied Tomcat. As with many other 
 distributions, the software is split across multiple packages, and contains 
 extraneous material.
 
 If you're doing development, it's far easier to download a copy of Tomcat 
 from 
 tomcat.apache.org, unpack it somewhere handy, and then run it. I maintain 
 multiple copies of Tomcat in ~/Apache along with various modifications to run 
 Solr, Jetspeed, OpenPortal, Pluto, some virtual hosts, and some clusters. No, 
 I 
 don't run all of these at once.
 
 Your other problem is when you start using log4j in your application and want 
 to 
 build the war file. Normally when you add a server to NetBeans or (I presume) 
 Eclipse, the IDE will use the server-supplied jar files to resolve 
 references. 
 The IDE will base which jars to pull from the server based on the type of 
 server 
 you've defined for a particular project.
 
 The problem is that Tomcat (as others have pointed out) does not come with 
 log4j 
 by default. If Eclipse is using the default definition of Tomcat, then a 
 log4j 
 jar file will not be included in the build path since the default 
 installation 
 does not have it.
 
 If you are set on running your application with Fedora's Tomcat distribution, 
 then you will have to include log4j in your Eclipse project, but have it not 
 added to the war file. If you are using a stock version of Tomcat, then you 
 will 
 have to add log4j to your project for both compilation and creation of the 
 war.
 
 Since I don't normally use Eclipse, I have no real idea how to do this.
 
 My personal preferences are:
 
 1. Install Java JRE/SDK/Docs from Oracle
Either alter the path or use alternatives to manage multiple Java versions
 2. Install Tomcat from ASF into my home directory for development
 3. Install IDE of choice from that vendor.
 
 This makes getting help from the various mailing lists (Java, IDE, Tomcat) 
 much 
 easier.
 
 The only downside is that you will have to manage updates for these 
 components 
 manually. However, at least Java can be managed via yum (just download the 
 RPM 
 packages from Oracle).
 
 . . . . just my two cents
 
 /mde/
 
 - Original Message 
 From: Salam Y. ELIAS salamli...@free.fr
 To: users@tomcat.apache.org
 Sent: Thu, November 18, 2010 1:46:54 AM
 Subject: how to setup HOME_PATH for Java and CATALINA_HOME
 
 I need to set up the environment variable JAVA_HOME and and
 CATALINA_HOME to start some web and Java EE,  am  little bit confused
 with conflicting information. 
 When I run 
 java -version
 ie get
 java version 1.6.0_18
 OpenJDK Runtime Environment (IcedTea6 1.8.2)
 (fedora-43.1.8.2.fc13-x86_64)
 OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
 
 When I run which java
 
 I get
 /usr/bin/java[/QUOTE]
 
 checking my usr/share I see several directories
 java (full of files and directories)
 java-1.3.0 (1 jar in it)
 java-1.3.1 (empty)
 java-1.4.0 (empty)
 java-1.5.0 (empty)
 java-1.6.0 (empty)
 java-1.7.0 (empty)
 
 Issuing the echo %PATH gives the following
 
 
 /usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/salam/bin
 
 
 
 In eclipse helios 3.6, I see in preferences  Java I have 
 
 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
 
 
 How one can check that he has Java EE setup correctly with Apache Tomcat
 6 ?
 
 I have Apache Tomcat up and running and need to setup CATALINA_HOME. 
 In the usr/share/java directory, I have a directory tomcat6 as well as
 a tomcat6 directory in /usr/share/. In Eclipse, when I try to add a
 server, eclipse doesnt see that I have a type of tomcat server.
 
 I have found so many articles on the web but 

Re: Tomcat hung

2010-11-18 Thread Konstantin Kolinko
2010/11/18 Robillard, Greg L greg.l.robill...@lmco.com:
 I continually get tomcat in this state and can only recover by restarting 
 tomcat from the command line.  Here is the stack trace that I gathered while 
 getting into this state, but it does not make any sense to me.

 Tomcat version apache-tomcat-6.0.26

 OS linux

 Jstack trace on tomcat hang.
 Tomcat is not responding, nor any webapps.  Profiler will not attach

 Attaching to process ID 21989, please wait...
 Debugger attached successfully.
 Server compiler detected.
 JVM version is 10.0-b19
 Deadlock Detection:

 No deadlocks found.

 Thread 3343: (state = BLOCKED)
 - 
 org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getAndSendCurrentStackTrace(char,
  char, int, long) @bci=0, line=218 (Compiled frame)
 - 
 org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness.traceObjAlloc(java.lang.Object,
  char) @bci=158, line=278 (Compiled frame)
 - java.lang.String.valueOf(char[]) @bci=12, line=2841 (Interpreted frame)
 - java.lang.Thread.getName() @bci=4, line=1061 (Interpreted frame)
 - 
 org.apache.catalina.connector.CoyoteAdapter.service(org.apache.coyote.Request,
  org.apache.coyote.Response) @bci=120, line=295 (Interpreted frame)
 - org.apache.coyote.http11.Http11Processor.process(java.net.Socket) @bci=468, 
 line=852 (Interpreted frame)
 - 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(java.net.Socket)
  @bci=82, line=588 (Interpreted frame)
 - org.apache.tomcat.util.net.JIoEndpoint$Worker.run() @bci=41, line=489 
 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=619 (Interpreted frame)


The above, and Thread 12244:
It looks that String.valueOf() call in Thread 3343 (called by
Thread.getName()) results in performing some network IO and being
stuck there?

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



How to source jobs/talent was RE: Tomcat Consultant

2010-11-18 Thread Jason Pyeron

There are going to be a lot of nit picks in this message.

 -Original Message-
 From: tdelesio [mailto:tdele...@gmail.com] 

Use a company email, this just looks unprofessional. I would never reply to it
to negotiate a contract or ask for a job.

 Sent: Friday, September 24, 2010 13:25
 To: users@tomcat.apache.org
 Subject: Tomcat Consultant
 
 
 My fortune 500 company is testing a pilot for switching over 

Again don't be anonymous.

 a J2EE web app over from Web Sphere application server to 

What WS specific APIs are used in the application?

 Tomcat and we are looking for a consultant to setup a crusted 

Proof read your postings.

 production instance of tomcat.  Does anyone have any 

What area of the world? What size is the project? Timeframe?

 recommendations for a top notch consulting firm that could 
 provide these services?

Did you do a google search for tomcat consultants?

-Jason Pyeron

Disclaimer: We perform many types J2EE consulting.

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



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



Should I upgrade to 7.0

2010-11-18 Thread Robillard, Greg L
I am relatively unfamiliar with tomcat.  I am currently running 6.26 in a 
production system that support 1 webapp for approximately 60 clients that 
continually poll the server for updates ( weather files ).

Is there any reason why I should upgrade to tomcat 7.0 release.

Thanks


RE: After manager says that there was a leak, how to use a profiler?

2010-11-18 Thread Brian
Hi Chris,

I already took off the JARs from the shared/lib directory. So that is not an 
issue now.
I have just stopped my apps, and this is what I have found in my log:


Nov 18, 2010 10:22:57 PM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesJdbc
SEVERE: The web application [] registered the JBDC driver 
[com.mysql.jdbc.Driver] but failed to unregister it when the web application 
was stopped. To prevent a memory leak, the JDBC Driver has been forcibly 
unregistered.
Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [MySQL 
Statement Cancellation Timer] but has failed to stop it. This is very likely to 
create a memory leak.
Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader 
clearThreadLocalMap
SEVERE: The web application [] created a ThreadLocal with key of type 
[org.apache.commons.lang.builder.ReflectionToStringBuilder$1] (value 
[org.apache.commons.lang.builder.reflectiontostringbuilde...@1794040]) and a 
value of type [java.util.HashSet] (value [[]]) but failed to remove it when the 
web application was stopped. This is very likely to create a memory leak.



 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: Tuesday, November 16, 2010 02:34 PM
 To: Tomcat Users List
 Subject: Re: After manager says that there was a leak, how to use a profiler?
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Brian,
 
 On 11/16/2010 10:42 AM, Brian wrote:
  If I choose
  the report of Paths from GC roots from it, I see LOTS of items! And
  all of them have the loader of indication. All the items are
  classes programmed by me, so I guess I'm guilty, and not the people
  that programmed Tomcat
  ;-)  . They are DTOs, facades, Struts actionforms, etc.
  Why are all these classes in the list?
 
 If these are java.lang.Class objects, then you are looking at the list of 
 classes
 loaded by the WebappClassLoader. These are the objects that make up the
 memory block that is unrecoverable. It's not the Class objects themselves that
 are holding onto references to the ClassLoader, it's the other way around.
 
  What should I check about them? Why are they still loaded?
 
 The real problem is that there is an object that is still live
 somewhere whose Class has been loaded by your webapp's
 WebappClassLoader.
 
  I guess there is something missing in my programming. Maybe I should
  do something about all the objects that are still alive that
  correspond to all the loaded classes? Maybe I need to do something in the
 contextDestroyed()
  method in the ServletContextListener in my app, in order to destroy
  all the objects properly?
 
 A basic rule is that anything you configure in a ServletContextListener's
 contextStarted method needs to be destroyed in the contextDestroyed
 method. Same thing for any Servlets that have
 init() methods -- use the destroy() method to clean-up those resources.
 
 When you undeploy, there may be a leak message in catalina.out. If you
 post that, we might be able to help you.
 



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



Re: Re: Problem in accessing jsp:useBean

2010-11-18 Thread Rekha Ravi Pai

I tried using beans.PasswordEncryptService .
Still It did not work.
Regards,
Rekha.

Karl San Gabriel wrote:

*Your code:

%@ page import = beans.*, java.sql.*%
jsp:useBean id=verify scope=session class=PasswordEncryptService /*

I think the value for class should be beans.PasswordEncryptService. Class
should be package.class. That's what I remember.

or

http://java.sun.com/products/jsp/tags/syntaxref.fm14.html


On Thu, Nov 18, 2010 at 1:29 PM, Rekha Ravi Pai re...@softjin.com wrote:

  

users-digest-h...@tomcat.apache.org wrote:

users Digest 15 Nov 2010 11:40:18 - Issue 10062

Topics (messages 219005 through 219016):

Re: Tomcat 6.0.29 using more and more RAM until it collapses?
   219005 by: Andr Warnier
   219010 by: Mark Thomas

Re: 7.0.4 problem
   219006 by: Anthony J. Biacco

Re: Using mod_jk in cluster environment responds HTTP 500
   219007 by: rikslovein
   219009 by: Andr Warnier
   219013 by: rikslovein

Problem in accessing jsp:useBean
   219008 by: Rekha Ravi Pai
   219011 by: Mark Thomas

Re: Shutting down one instance of tomcat 6 from a listener
   219012 by: Patrick Sauts

Tomcat Going down Frequently
   219014 by: Amol Puglia
   219015 by: Andr Warnier
   219016 by: Pid

Administrivia:




Subject:
Problem in accessing jsp:useBean
From:
Rekha Ravi Pai re...@softjin.com
Date:
Mon, 15 Nov 2010 12:40:46 +0530
To:
users@tomcat.apache.org
To:
users@tomcat.apache.org

Hi,
I have installed tomcat-6.0.20 and postgresql-9.0.1
I have created a java bean PasswordEncryptService.java
I have kept it in WEB-INF/classes/beans directory and in beans package.
I compiled the java file and successfully ran the class and could
enter a data in a table in pgsql database.
I have created a jsp file under webapps/apps/InfoMgmt/secure directory.
In this jsp file I imported the PasswordEncryptService class and used
the
bean under the tag jsp:useBean. But I am getting the following error.

The value for the useBean class attribute PasswordEncryptService is
invalid.


Can anybody please, help me in resolving this issue?

Thanks and Regards,
Rekha.





Subject:
Re: Problem in accessing jsp:useBean
From:
Mark Thomas ma...@apache.org
Date:
Mon, 15 Nov 2010 09:04:37 +
To:
Tomcat Users List users@tomcat.apache.org
To:
Tomcat Users List users@tomcat.apache.org

On 15/11/2010 07:10, Rekha Ravi Pai wrote:


Hi,
I have installed tomcat-6.0.20 and postgresql-9.0.1
I have created a java bean PasswordEncryptService.java
I have kept it in WEB-INF/classes/beans directory and in beans
package.
I compiled the java file and successfully ran the class and could
enter a data in a table in pgsql database.
I have created a jsp file under webapps/apps/InfoMgmt/secure
directory.
In this jsp file I imported the PasswordEncryptService class and
used the
bean under the tag jsp:useBean. But I am getting the following
error.

The value for the useBean class attribute PasswordEncryptService is
invalid.


Can anybody please, help me in resolving this issue?



Not without you showing us the source for the simplest JSP and bean
that
recreates this issue.

Mark





PasswordEncryptService.java file I am giving below.
I have placed this in the path
/usr/local/apache-tomcat-6.0.20/webapps/apps/WEB-INF/classes/beans

/// class to verify the password
package beans;

import java.security.NoSuchAlgorithmException;
import java.io.*; //UnsupportedEncodingException;
import java.security.MessageDigest;
import org.apache.commons.codec.binary.Base64;
import java.security.DigestOutputStream;
import java.sql.*;

public class PasswordEncryptService implements Serializable {
private static final long serialVersionUID = 7526472295622776147L;
Connection con;
Statement stm ;
ResultSet rs = null;

public PasswordEncryptService (){
try{
Class.forName(org.postgresql.Driver);
con =
DriverManager.getConnection(jdbc:postgresql:employee_release,postgres,
);
stm = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
}
catch (SQLException sqle ){
sqle.printStackTrace();
}
catch (ClassNotFoundException cnfe  ) {
cnfe.printStackTrace();
}

}

private String getEncryptedString  (String rawString ) throws Exception
{  /// encrypt the raw String using SHA algorithm
String encryptedString = ;
byte[] encoded = Base64.encodeBase64(rawString.getBytes());

encryptedString = new String(encoded);
return encryptedString;
}

public void writeNewPasswd(String username,String passwd)throws
Exception { ///writing new password in case the password 

Re: Tomcat Consultant

2010-11-18 Thread Asangansi
Lets wait and watch guys.


skype: asangansi.ini
+47 48295638



On Fri, Nov 19, 2010 at 12:19 AM, Pid p...@pidster.com wrote:

 On 18/11/2010 21:52, Martin Gainty wrote:
 
  can we get someone from the vatican to translate?

 I think there's a couple of Cardinals lurking on the list, but you might
 have to wait until it's working hours in Europe again.


 p

  Martin Gainty
  __
  Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
  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, 18 Nov 2010 21:08:37 +
  From: ma...@apache.org
  To: users@tomcat.apache.org
  Subject: Re: Tomcat Consultant
 
  On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
  Um, can anyone translate this? Am I really seeing that?
  http://training.mulesoft.com/about/index.html
 
  It looks like Latin to me. Google translate will take a stab at it on
  that basis.
 
  Best guess, someone at Mulesoft's idea of a joke (not sure where the
  humour is) or their website has been hacked.
 
  Mark
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 




Re: Tomcat Consultant

2010-11-18 Thread Rhino


 There are two languages in the cited message, German and French. I'm 
positive about that.


I'm not great in either language and certainly don't know all of the 
words but I think the French message is just a translation of the German 
message which appears to be a standard confidentiality clause of the 
kind found in many emails. You know the kind: This information is 
confidential and is only intended for whoever. If you receive it in 
error, do such-and-such.


I'm not clear about the context of this message but if you're thinking 
it's a Tomcat question, I'm pretty sure it's not.


--
Rhino


On 2010-11-19 00:20, Asangansi wrote:

Lets wait and watch guys.


skype: asangansi.ini
+47 48295638



On Fri, Nov 19, 2010 at 12:19 AM, Pidp...@pidster.com  wrote:


On 18/11/2010 21:52, Martin Gainty wrote:

can we get someone from the vatican to translate?

I think there's a couple of Cardinals lurking on the list, but you might
have to wait until it's working hours in Europe again.


p


Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

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, 18 Nov 2010 21:08:37 +
From: ma...@apache.org
To: users@tomcat.apache.org
Subject: Re: Tomcat Consultant

On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:

Um, can anyone translate this? Am I really seeing that?
http://training.mulesoft.com/about/index.html

It looks like Latin to me. Google translate will take a stab at it on
that basis.

Best guess, someone at Mulesoft's idea of a joke (not sure where the
humour is) or their website has been hacked.

Mark

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

2010-11-18 Thread Antonio Vidal Ferrer
Good Morning from Europe!

It is a common disclaimer email message. Translated to English:

This message is confidential and may be privileged. If you are not the intended 
recipient, we kindly ask you to notify the sender. Any unauthorized 
distribution or copying of this is prohibited. This message is for 
informational purposes only and will have not any legal binding effect. Because 
email can be easily subject to manipulation, we can't accept no liability for 
content supplied.

Anyway, by now it has disappeared from Mulesoft's page. Maybe someone 
mistakenly pressed the wrong key while updating their web site. And of course, 
is nothing related with Tomcat

Good Night America!

Best,

Antonio Vidal.


-Mensaje original-
De: Rhino [mailto:rhi...@sympatico.ca] 
Enviado el: viernes, 19 de noviembre de 2010 6:35
Para: Tomcat Users List
Asunto: Re: Tomcat Consultant


  There are two languages in the cited message, German and French. I'm 
positive about that.

I'm not great in either language and certainly don't know all of the 
words but I think the French message is just a translation of the German 
message which appears to be a standard confidentiality clause of the 
kind found in many emails. You know the kind: This information is 
confidential and is only intended for whoever. If you receive it in 
error, do such-and-such.

I'm not clear about the context of this message but if you're thinking 
it's a Tomcat question, I'm pretty sure it's not.

--
Rhino


On 2010-11-19 00:20, Asangansi wrote:
 Lets wait and watch guys.

 
 skype: asangansi.ini
 +47 48295638



 On Fri, Nov 19, 2010 at 12:19 AM, Pidp...@pidster.com  wrote:

 On 18/11/2010 21:52, Martin Gainty wrote:
 can we get someone from the vatican to translate?
 I think there's a couple of Cardinals lurking on the list, but you might
 have to wait until it's working hours in Europe again.


 p

 Martin Gainty
 __
 Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

 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, 18 Nov 2010 21:08:37 +
 From: ma...@apache.org
 To: users@tomcat.apache.org
 Subject: Re: Tomcat Consultant

 On 18/11/2010 21:04, Leo Donahue - PLANDEVX wrote:
 Um, can anyone translate this? Am I really seeing that?
 http://training.mulesoft.com/about/index.html
 It looks like Latin to me. Google translate will take a stab at it on
 that basis.

 Best guess, someone at Mulesoft's idea of a joke (not sure where the
 humour is) or their website has been hacked.

 Mark

 -
 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: How to source jobs/talent was RE: Tomcat Consultant

2010-11-18 Thread André Warnier

Jason Pyeron wrote:
...


Disclaimer: We perform many types J2EE consulting.


proofreading ?


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



Re: Should I upgrade to 7.0

2010-11-18 Thread Edoardo Panfili

On 19/11/10 03.28, Robillard, Greg L wrote:

I am relatively unfamiliar with tomcat.  I am currently running 6.26 in a 
production system that support 1 webapp for approximately 60 clients that 
continually poll the server for updates ( weather files ).

Is there any reason why I should upgrade to tomcat 7.0 release.


Tomcat 7.0 (7.0.4 http://tomcat.apache.org/download-70.cgi)
is still tagged as beta... I am using it in my development environment 
(without problems) but not in a production system.



Edoardo

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



Re: Should I upgrade to 7.0

2010-11-18 Thread André Warnier

Robillard, Greg L wrote:

I am relatively unfamiliar with tomcat.  I am currently running 6.26 in a 
production system that support 1 webapp for approximately 60 clients that 
continually poll the server for updates ( weather files ).

Is there any reason why I should upgrade to tomcat 7.0 release.


Unless you have a problem, not with any urgency, no.
You may want to upgrade to 6.0.29, which is the real current version in the 6.0 series 
(see http://tomcat.apache.org/whichversion.html), and which will not break anything.


I am still quite happily running systems with Tomcat 5.5.  I would not recommend this as a 
general practice, but as long as there is no problem..


An old saying is : if it's not broken, don't fix it.

I expect some comments on the above personal views.

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