RE: Rebuilding Tomcat from sources

2008-07-02 Thread JLucas ZB

 Hello Chuck,

thank you very much for your answer, this helps me

JLZ
 
 

 Message du 27/06/08 15:14
 De : Caldarale, Charles R 
 A : Tomcat Users List 
 Copie à : 
 Objet : RE: Rebuilding Tomcat from sources
 
 
  From: JLucas ZB [mailto:[EMAIL PROTECTED]
  Subject: Re: Rebuilding Tomcat from sources
 
  Where can I get tomcat-dbcp.jar, which URL ?  (to rebuild
  tomcat, i had to retrieve it from the binary distrib.)
 
 Look in the build.xml and build.properties.default files for source 
 locations.  You'll see that tomcat-dbcp.jar is actually constructed from 
 several commons- sources: collections, pool, and dbcp.  The default locations 
 of each are under http://archive.apache.org/dist/commons:
 
 collections/source/commons-collections-3.2-src.tar.gz
 pool/source/commons-pool-1.4-src.tar.gz
 dbcp/source/commons-dbcp-1.2.2-src.tar.gz
 
 Since you can't run the ant download target in your environment, you can do 
 the downloads manually, then run the ant build-tomcat-dbcp target to 
 construct the .jar file.  Look at lines 676 and following (that's for 6.0.16, 
 may be different in 6.0.14) in the build.xml script.
 
  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Re: Rebuilding Tomcat from sources

2008-06-27 Thread JLucas ZB
Thank you very much.
All works fine, tomcat 6.0.14 have been rebuild
This is my last question ...
Where can I get tomcat-dbcp.jar, which URL ?  (to rebuild tomcat, i had to 
retrieve it from the binary distrib.)
 Thank you
JLZ
 
 

 Message du 26/06/08 00:28
 De : Rainer Jung 
 A : Tomcat Users List 
 Copie à : 
 Objet : Re: Rebuilding Tomcat from sources
 
 
 JLucas ZB schrieb:
  Hello,
  
  I can't do the 'ant download' because our proxy disables some
  stations as ours so i have dowloaded (from 'another server') : 
  apache-tomcat-6.0.14-src from tomcat site, it's  OK. Now, i just do
  from my tomcat src: ant and I still have the message:
  
  /exec/products/jlz/sources/apache-tomcat-6.0.14-src/build.xml:457:
  Warning: Could not find file
  /usr/share/java/tomcat-native-1.1.10/tomcat-native.tar.gz to copy.
  
  I tried to download tomcat-native-1.1.10.tar.gz and I could only get
  tomcat-native-1.1.10-src.tar.gz -- so, i have build it and it just
  created : 
  ${tomcat-native-src}/jni/native/.libs/libtcnative-1.so.0.1.10 I do
  not understand
  
  Where can I download tomcat-native.tar.gz (http transfer from
  'another server') ?
 
 The file tomcat-native.tar.gz is identical to 
 tomcat-native-1.1.NN-src.tar.gz, where NN depends on the Tomcat version. 
 In your case NN=10. Simply rename the .tar.gz. The most recent is NN=13, 
 in a few days NN=14.
 
 The build will not build tcnative. Normal (non-Windows) Tomcat 
 distributables simply bundle the tar.gz as a file in case the user wants 
 to build the native connector on his platform.
 
 For running Tomcat without the native connector, you would never 
 actually use this file, (although the ant build mandatory wants to 
 bundle it in the Tomcat tarfile).
 
 Regards,
 
 Rainer
 
  Thank you JLZ
  
  
  
  
  Message du 24/06/08 19:25 De : Caldarale, Charles R A : Tomcat
  Users List Copie à : Objet : RE: Rebuilding Tomcat from sources
  
  
  From: JLucas ZB [mailto:[EMAIL PROTECTED] Subject: Rebuilding
  Tomcat from sources
  
  I don't know where to find the tomcat-native.tar.gz
  Did you do the ant download step as documented here: 
  http://tomcat.apache.org/tomcat-6.0-doc/building.html#Building%20Tomcat
  
  
  Note CLASSPATH= 
  $ECLIPSE_HOME\plugins\org.eclipse.jdt.core_3.3.1.v_780_R33x.jar
  You probably want to get rid of that - CLASSPATH should really
  never be used these days.
  
  - 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 start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe, e-mail: [EMAIL PROTECTED] For
  additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Rebuilding Tomcat from sources

2008-06-24 Thread JLucas ZB
Hi everybody,

i would like to rebuild Tomcat (6.0.14) from sources; jvm = jrockit-jdk1.5.0_06
'Ant (1.6.5) build' give me the following message (at deploy target):

/exec/products/jlzb/sources/apache-tomcat-6.0.14-src/build.xml:457: Warning: 
Could not find file /usr/share/java/tomcat-native-1.1.10/tomcat-native.tar.gz 
to copy.


Here is an excerpt of build.properties:


# - Default Base Path for Dependent Packages -
# Please note this path must be absolute, not relative,
# as it is referenced with different working directory
# contexts by the various build scripts.
base.path=/usr/share/java
#base.path=C:/path/to/the/repository
#base.path=/usr/local
compile.source=1.5
compile.target=1.5
compile.debug=true
base-jakarta.loc=http://archive.apache.org/dist/jakarta
base-tomcat.loc=http://archive.apache.org/dist/tomcat
# - Commons Logging, version 1.1 or later -
commons-logging-src.loc=${base-jakarta.loc}/commons/logging/source/commons-logging-1.1-src.tar.gz
# - Webservices -
jaxrpc-src.loc=http://repo1.maven.org/maven2/geronimo-spec/geronimo-spec-jaxrpc/1.1-rc4/geronimo-spec-jaxrpc-1.1-rc4.jar
wsdl4j-src.loc=http://repo1.maven.org/maven2/wsdl4j/wsdl4j/1.6.1/wsdl4j-1.6.1.jar
# - Eclipse JDT, version 3.2 or later -
#jdt.home=${base.path}/eclipse/plugins
#jdt.lib=${jdt.home}
#jdt.jar=${jdt.lib}/org.eclipse.jdt.core_3.2.3.v_686_R32x.jar
#jdt.loc=http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.2.2-200702121330/eclipse-JDT-3.2.2.zip
# - Tomcat native library -
tomcat-native.home=${base.path}/tomcat-native-1.1.10
tomcat-native.tar.gz=${tomcat-native.home}/tomcat-native.tar.gz
tomcat-native.loc=${base-tomcat.loc}/tomcat-connectors/native/tomcat-native-1.1.10-src.tar.gz



I don't know where to find the tomcat-native.tar.gz

Note CLASSPATH= $ECLIPSE_HOME\plugins\org.eclipse.jdt.core_3.3.1.v_780_R33x.jar


Thank you

Invalidate sessions

2008-06-17 Thread JLucas ZB

Hello,

i would like to invalidate the sessions.
Is there any way to do that ? 

J Lucas


Compatibility Apache - mod_jk - Tomcat

2008-06-02 Thread JLucas ZB
Hi everybody,

which are the best Apache, mod_jk versions to use with Tomcat 5.5.17 ?

Is there any compatibility table for those products ?

Many thanks

JLZ


Activating jmx under linux

2008-04-18 Thread JLucas ZB
Hello,

I still have probs in configuring jmx under my Tomcat hosted by Linux
Here is an excerpt of $TOMCAT_HOME/bin/catalina.sh

# - Execute The Requested Command -

export CATALINA_OPTS=-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port= 
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false

echo Using CATALINA_BASE:   $CATALINA_BASE
echo Using CATALINA_HOME:   $CATALINA_HOME
echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
echo Using CATALINA_OPTS: $CATALINA_OPTS
echo Using JAVA_HOME:   $JAVA_HOME

The processes list:

 T O M C A T -
root   380 1  3 11:31 pts/5    00:00:04 
/home/jlzb/apps/j2sdk1.4.2_08/bin/java 
-Dcom.sun.management.jmxremote-Dcom.sun.management.
jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/home/
jlzb/apps/jakarta-tomcat-5.0.28/common/endorsed -classpath 
/home/jlzb/apps/j2sdk1.4.2_08/lib/tools.jar:/home/jlzb/apps/jakarta-tomcat-5.0.
28/bin/bootstrap.jar:/home/jlzb/apps/jakarta-tomcat-5.0.28/bin/commons-logging-api.jar
 -Dcatalina.base=/home/jlzb/apps/jakarta-tomcat-5.0.
28 -Dcatalina.home=/home/jlzb/apps/jakarta-tomcat-5.0.28 
-Djava.io.tmpdir=/home/jlzb/apps/jakarta-tomcat-5.0.28/temp 
org.apache.catalina.s
tartup.Bootstrap start
 A P A C H E -
root 32753 1  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32755 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32756 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32758 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
daemon   32760 32753  0 11:31 ?    00:00:00 
/home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
[EMAIL PROTECTED]::/home/jlzb/apps/jakarta-tomcat-5.0.28/conf]#

The -Dcom.sun.management.jmxremote.port jvm argument seems to be well set but I 
can't access Tomcat through jmx console; netstat -an don't show the  port:

Proto Recv-Q Send-Q Adresse locale  Adresse distante    Etat
tcp    0  0 0.0.0.0:32769   0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:2049    0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:741 0.0.0.0:*   LISTEN
tcp    0  0 10.0.0.20:5000            0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
tcp    0  0 0.0.0.0:631 0.0.0.0:*   LISTEN
tcp    0  0 127.0.0.1:25    0.0.0.0:*   LISTEN
tcp    0  0 127.0.0.1:37435 0.0.0.0:*   LISTEN
tcp    0  0 127.0.0.1:8005  :::*    LISTEN
tcp    0  0 :::8009 :::*    LISTEN
tcp    0  0 :::8080 :::*    LISTEN
tcp    0  0 :::80   :::*    LISTEN
tcp    0  0 :::22   :::*    LISTEN
tcp    0  0 ::1:25  :::*    LISTEN
tcp    0  0 10.0.0.20:22  10.0.0.59:4642    ESTABLISHED
tcp    0  0 10.0.0.20:22  10.0.0.59:4736    ESTABLISHED
tcp    0 53 10.0.0.20:22  10.0.0.23:1954    FIN_WAIT1
tcp    0  0 10.0.0.20:22  10.0.0.23:1961    ESTABLISHED
tcp    0  0 10.0.0.20:22  10.0.0.23:1944    TIME_WAIT
udp    0  0 0.0.0.0:32768   0.0.0.0:*
udp    0  0 0.0.0.0:2049    0.0.0.0:*
udp    0  0 0.0.0.0:32770   0.0.0.0:*
udp    0  0 0.0.0.0:740 0.0.0.0:*
udp    0  0 0.0.0.0:5353    0.0.0.0:*
udp    0  0 0.0.0.0:111 0.0.0.0:*
udp    0  0 0.0.0.0:631 0.0.0.0:*

There's no error within log file
What's wrong

Thanks

JLucas

Re: Activating jmx under linux

2008-04-18 Thread JLucas ZB

 Hello,

the hostname is both defined at name server and /etc/hosts et it still don't 
work
On windows platform with the same jmx jvm options, it's OK

 Message du 18/04/08 12:49
 De : Upul Godage 
 A : Tomcat Users List , JLucas ZB 
 Copie à : 
 Objet : Re: Activating jmx under linux
 
 Check whether /etc/hosts has the host name resolved to machine ip address. 
 Something like this. I remember we had a JMX issue and this resolved it. 
 
 10.100.1.123 myhost
 
 Upul
  
 
 
 
 On Fri, Apr 18, 2008 at 3:26 PM, JLucas ZB [EMAIL PROTECTED] wrote:
  Hello,
  
  I still have probs in configuring jmx under my Tomcat hosted by Linux
  Here is an excerpt of $TOMCAT_HOME/bin/catalina.sh
  
  # - Execute The Requested Command 
 -
  
  export CATALINA_OPTS=-Dcom.sun.management.jmxremote 
 -Dcom.sun.management.jmxremote.port= 
 -Dcom.sun.management.jmxremote.ssl=false \
  -Dcom.sun.management.jmxremote.authenticate=false
  
  echo Using CATALINA_BASE:   $CATALINA_BASE
  echo Using CATALINA_HOME:   $CATALINA_HOME
  echo Using CATALINA_TMPDIR: $CATALINA_TMPDIR
  echo Using CATALINA_OPTS: $CATALINA_OPTS
  echo Using JAVA_HOME:   $JAVA_HOME
  
  The processes list:
  
   T O M C A T -
  root   380 1  3 11:31 pts/5    00:00:04 
 /home/jlzb/apps/j2sdk1.4.2_08/bin/java 
 -Dcom.sun.management.jmxremote-Dcom.sun.management.
  jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
 -Dcom.sun.management.jmxremote.authenticate=false -Djava.endorsed.dirs=/home/
  jlzb/apps/jakarta-tomcat-5.0.28/common/endorsed -classpath 
 /home/jlzb/apps/j2sdk1.4.2_08/lib/tools.jar:/home/jlzb/apps/jakarta-tomcat-5.0.
  
 28/bin/bootstrap.jar:/home/jlzb/apps/jakarta-tomcat-5.0.28/bin/commons-logging-api.jar
  -Dcatalina.base=/home/jlzb/apps/jakarta-tomcat-5.0.
  28 -Dcatalina.home=/home/jlzb/apps/jakarta-tomcat-5.0.28 
 -Djava.io.tmpdir=/home/jlzb/apps/jakarta-tomcat-5.0.28/temp 
 org.apache.catalina.s
  tartup.Bootstrap start
   A P A C H E -
  root 32753 1  0 11:31 ?    00:00:00 
 /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
  daemon   32755 32753  0 11:31 ?    00:00:00 
 /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
  daemon   32756 32753  0 11:31 ?    00:00:00 
 /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
  daemon   32758 32753  0 11:31 ?    00:00:00 
 /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
  daemon   32760 32753  0 11:31 ?    00:00:00 
 /home/jlzb/apps/httpd-2.2.4//bin/httpd -k start
  [EMAIL PROTECTED]::/home/jlzb/apps/jakarta-tomcat-5.0.28/conf]#
  
  The -Dcom.sun.management.jmxremote.port jvm argument seems to be well set 
 but I can't access Tomcat through jmx console; netstat -an don't show the 
  port:
  
  Proto Recv-Q Send-Q Adresse locale  Adresse distante    Etat
  tcp    0  0 0.0.0.0:32769   0.0.0.0:*   LISTEN
  tcp    0  0 0.0.0.0:2049    0.0.0.0:*   LISTEN
  tcp    0  0 0.0.0.0:741 0.0.0.0:*   LISTEN
  tcp    0  0 10.0.0.20:5000            0.0.0.0:*   LISTEN
  tcp    0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
  tcp    0  0 0.0.0.0:631 0.0.0.0:*   LISTEN
  tcp    0  0 127.0.0.1:25    0.0.0.0:*   LISTEN
  tcp    0  0 127.0.0.1:37435 0.0.0.0:*   LISTEN
  tcp    0  0 127.0.0.1:8005  :::*    LISTEN
  tcp    0  0 :::8009 :::*    LISTEN
  tcp    0  0 :::8080 :::*    LISTEN
  tcp    0  0 :::80   :::*    LISTEN
  tcp    0  0 :::22   :::*    LISTEN
  tcp    0  0 ::1:25  :::*    LISTEN
  tcp    0  0 10.0.0.20:22  10.0.0.59:4642    ESTABLISHED
  tcp    0  0 10.0.0.20:22  10.0.0.59:4736    ESTABLISHED
  tcp    0 53 10.0.0.20:22  10.0.0.23:1954    FIN_WAIT1
  tcp    0  0 10.0.0.20:22  10.0.0.23:1961    ESTABLISHED
  tcp    0  0 10.0.0.20:22  10.0.0.23:1944    TIME_WAIT
  udp    0  0 0.0.0.0:32768   0.0.0.0:*
  udp    0  0 0.0.0.0:2049    0.0.0.0:*
  udp    0  0 0.0.0.0:32770   0.0.0.0:*
  udp    0  0 0.0.0.0:740 0.0.0.0:*
  udp    0  0 0.0.0.0:5353    0.0.0.0:*
  udp    0  0 0.0.0.0:111 0.0.0.0:*
  udp    0  0 0.0.0.0:631 0.0.0.0:*
  
  There's no error within log file
  What's wrong
  
  Thanks
  
  JLucas
  


RE: Activating jmx under linux

2008-04-18 Thread JLucas ZB
The space is not missing.
Now I've done your way:

  export CATALINA_OPTS=-Dcom.sun.management.jmxremote.port= 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false

and the  port still does not appear !

 

 Message du 18/04/08 15:26
 De : Caldarale, Charles R 
 A : Tomcat Users List 
 Copie à : 
 Objet : RE: Activating jmx under linux
 
  From: JLucas ZB [mailto:[EMAIL PROTECTED] 
  Subject: Activating jmx under linux
  
  root   380 1  3 11:31 pts/5    00:00:04 
  /home/jlzb/apps/j2sdk1.4.2_08/bin/java 
  -Dcom.sun.management.jmxremote-Dcom.sun.management.
  jmxremote.port= -Dcom.sun.management.jmxremote.ssl=false 
  -Dcom.sun.management.jmxremote.authenticate=false 
 
 Is there a typo in the above, or is there really a space missing between
   -Dcom.sun.management.jmxremote
 and
   -Dcom.sun.management.jmxremote.port=?
 
 By the way, I don't think you need the first parameter if you have any other 
 jmxremote settings.
 
  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


RE: Tomcat and jmx

2008-04-17 Thread JLucas ZB
Hello,

that's what i've read from the same url but my tomcat runs under windows, as a 
service.
With Tomcat 6, there's only a binary file (tomcat.exe) within %TOMCAT_HOME%\bin 
so there's no other way but configuring CATALINA_OPTS through  the  Panel 
System.
That's what I did but it seems that the -Dcom.sun.management.jmxremote 
options are not read - For example: I set 
-Dcom.sun.management.jmxremote.port=.
So when I try to access it with JConsole : 
service:jmx:rmi:///jndi/rmi://localhost:/jmxrmi  -- Connexion failed 
(with  it's OK)

Any other idea ?

Cheers
  

 Message du 17/04/08 16:59
 De : Antonio Vidal Ferrer 
 A : 'Tomcat Users List' , 'ZB' 
 Copie à : 
 Objet : RE: Tomcat and jmx
 
 Well, it can be done via CATALINA_OPTS. 
 
 For example:
 
 setenv CATALINA_OPTS -Dcom.sun.management.jmxremote \
 -Dcom.sun.management.jmxremote.port=8123 \
 -Dcom.sun.management.jmxremote.ssl=false \
 -Dcom.sun.management.jmxremote.authenticate=true \
 -Dcom.sun.management.jmxremote.password.file=conf/jmxremote.password \
 -Dcom.sun.management.jmxremote.access.file=conf/jmxremote.access
 
 You can check this here:
 http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html
 
 Best
 
 Toni.
 
 
 
 -Original Message-
 From: ZB [mailto:[EMAIL PROTECTED] 
 Sent: jueves, 17 de abril de 2008 15:38
 To: users@tomcat.apache.org
 Subject: Tomcat and jmx
 
 Hi everybody,
 
 
 i would like to monitor my Tomcat 6.0 with another port instead of .
 How can I change the VM arguments within my Tomcat Service (Windows XP)
 
 Thank you
 
 JLucas
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


RE: Tomcat and jmx

2008-04-17 Thread JLucas ZB
Many thanks, it works

JLucas
  
 

 Message du 17/04/08 17:20
 De : Caldarale, Charles R 
 A : Tomcat Users List 
 Copie à : 
 Objet : RE: Tomcat and jmx
 
  From: JLucas ZB [mailto:[EMAIL PROTECTED] 
  Subject: RE: Tomcat and jmx
  
  With Tomcat 6, there's only a binary file (tomcat.exe) within 
  %TOMCAT_HOME%\bin so there's no other way but configuring 
  CATALINA_OPTS through  the  Panel System.
 
 Not sure what you mean by the Panel System, but you should be using the 
 tomcat6w.exe program to set the Java options.  Setting the jmxremote flags 
 works fine for me.
 
  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]