Re: rewrite.config don't work as expected after Tomcat 8.5.53 to 8.5.55 update

2020-06-09 Thread Mark Thomas
On 09/06/2020 15:51, Ziarko Jakub wrote:
> Hi,
> 
> 
> After the Tomcat update (below) rewrite.config doesn't seem to be working. If 
> no one knows the answer maybe at least can provide me how to enable login for 
> RewriteValve.

There is a regression in 8.5.55. Update to 8.5.56.

Mark


> 
> Last rewrite command instead of redirecting all requests to index.html 
> (angular app) it search in path files and returns the 404. When I reinstall 
> the 8.5.53 this works perfectly.
> 
> Tomcat is installed on windows machine.
> RewriteRule ^/value/assets/value.json$ /config/value_config.json [L]
> 
> RewriteCond %{SERVLET_PATH} !-f
> RewriteRule ^/angular/(.*)$ /angular/index.html [L]
> 
> 
> BR
> Kuba Ziarko
> 


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



Re: mod_jk don't work fine

2009-10-25 Thread frpll



Pid Ster wrote:
 
 On 24 Oct 2009, at 19:38, frpll jose_lopez_r...@telefonica.net wrote:
 

 Hi everyone!
 I have installed Apache2.2 and mod_jk 1.2.25. I have configured
 httpd.conf
 workers.properties,  uriworkermap.properties, etc... Apache 2.2 work
 fine,
 Tomcat 5.5.20 work fine but connector don't work fine. When I open
 firefox
 and I type the direction http://domain.com. If my config virtual
 server
 Apache have Indexed display directories. If I cliking on index.jsp
 Tomcat
 redirect to $CATALINA_HOME//webapps/ROOT/index.jsp, don't display
 index.jsp
 of my application. Why? Some idea ? I cant to sent file's
 configuration.
 
 I'd guess your config doesn't work.
 You should post it, so someone here can assist.
 
 p
 
 
 Best Regard.
 --
 View this message in context:
 http://www.nabble.com/mod_jk-don%27t-work-fine-tp26041828p26041828.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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

 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
Hi!
My config is:
/etc/apache2.conf

ServerRoot /etc/apache2
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
IfModule mpm_prefork_module
StartServers  5
MinSpareServers   5
MaxSpareServers  10
MaxClients  150
MaxRequestsPerChild   0
/IfModule
IfModule mpm_worker_module
StartServers  2
MaxClients  150
MinSpareThreads  25
MaxSpareThreads  75
ThreadsPerChild  25
MaxRequestsPerChild   0
/IfModule
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
Files ~ ^\.ht
Order allow,deny
Deny from all
/Files
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent
ServerTokens Full
ServerSignature On
# Include generic snippets of statements
Include /etc/apache2/conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/

/etc/apache2/httpd.conf

JkWorkersFile   /etc/libapache2-mod-jk/workers.properties
JkLogFile   /var/log/apache2/mod_jk.log
JkLogLevel  info
JkShmFile /var/log/apache2/mod_jk.shm
JkMountFile /etc/apache2/uriworkermap.properties
JkMount /*.jsp ajp13_worker
JkMount /*/servlet/ ajp13_worker
JkMount /*/jsp-examples/* worker1
JkMount /*/servletsexamples/* worker1
JkMount /*/Subastas/* worker1

 /etc/libapache2-mod-jk/workers.properties

workers.tomcat_home=/opt/apache-tomcat
workers.java_home=/opt/jdk1.6.0_03
worker.list=worker1
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=10.0.0.9
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
worker.worker1.port=8009
worker.worker1.host=10.0.0.9
worker.worker1.type=ajp13
worker.worker1.lbfactor=2
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker

/etc/apache2/uriworkermap.properties

/admin/*=worker1
/manager/*=worker1
/jsp-examples/*=worker1mods-available
/servlets-examples/*=worker1
/examples/*=worker1
/*.jsp=ajp13_worker
/jkmanager=jkstatus

/etc/apache2/sites-available/auction

NameVirtualHost 10.0.0.9
VirtualHost subastas.myserver.com
ServerAdmin webmas...@localhost
ServerName subastas.myserver.com
DocumentRoot /opt/apache-tomcat/webapps/Auction
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /opt/apache-tomcat/webapps/Auction
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
/Directory



ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On


/VirtualHost

/etc/apache2/mods-available/jk.load

LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so

There's nothing else.
-- 
View this message in context: 
http://www.nabble.com/mod_jk-don%27t-work-fine-tp26041828p26047284.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-

Re: mod_jk don't work fine

2009-10-25 Thread Rainer Jung
On 25.10.2009 13:17, frpll wrote:
 
 
 
 Pid Ster wrote:

 On 24 Oct 2009, at 19:38, frpll jose_lopez_r...@telefonica.net wrote:


 Hi everyone!
 I have installed Apache2.2 and mod_jk 1.2.25. I have configured
 httpd.conf
 workers.properties,  uriworkermap.properties, etc... Apache 2.2 work
 fine,
 Tomcat 5.5.20 work fine but connector don't work fine. When I open
 firefox
 and I type the direction http://domain.com. If my config virtual
 server
 Apache have Indexed display directories. If I cliking on index.jsp
 Tomcat
 redirect to $CATALINA_HOME//webapps/ROOT/index.jsp, don't display
 index.jsp
 of my application. Why? Some idea ? I cant to sent file's
 configuration.

 I'd guess your config doesn't work.
 You should post it, so someone here can assist.

 p


 Best Regard.
 --
 View this message in context:
 http://www.nabble.com/mod_jk-don%27t-work-fine-tp26041828p26041828.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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



 Hi!
 My config is:
 /etc/apache2.conf
 
 ServerRoot /etc/apache2
 LockFile /var/lock/apache2/accept.lock
 PidFile ${APACHE_PID_FILE}
 Timeout 300
 KeepAlive On
 MaxKeepAliveRequests 100
 KeepAliveTimeout 15
 IfModule mpm_prefork_module
 StartServers  5
 MinSpareServers   5
 MaxSpareServers  10
 MaxClients  150
 MaxRequestsPerChild   0
 /IfModule
 IfModule mpm_worker_module
 StartServers  2
 MaxClients  150
 MinSpareThreads  25
 MaxSpareThreads  75
 ThreadsPerChild  25
 MaxRequestsPerChild   0
 /IfModule
 User ${APACHE_RUN_USER}
 Group ${APACHE_RUN_GROUP}
 Files ~ ^\.ht
 Order allow,deny
 Deny from all
 /Files
 DefaultType text/plain
 HostnameLookups Off
 ErrorLog /var/log/apache2/error.log
 LogLevel warn
 # Include module configuration:
 Include /etc/apache2/mods-enabled/*.load
 Include /etc/apache2/mods-enabled/*.conf
 
 # Include all the user configurations:
 Include /etc/apache2/httpd.conf
 
 # Include ports listing
 Include /etc/apache2/ports.conf
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
 combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i - %U referer
 LogFormat %{User-agent}i agent
 ServerTokens Full
 ServerSignature On
 # Include generic snippets of statements
 Include /etc/apache2/conf.d/
 
 # Include the virtual host configurations:
 Include /etc/apache2/sites-enabled/
 
 /etc/apache2/httpd.conf
 
 JkWorkersFile   /etc/libapache2-mod-jk/workers.properties
 JkLogFile   /var/log/apache2/mod_jk.log
 JkLogLevel  info
 JkShmFile /var/log/apache2/mod_jk.shm
 JkMountFile /etc/apache2/uriworkermap.properties
 JkMount /*.jsp ajp13_worker
 JkMount /*/servlet/ ajp13_worker
 JkMount /*/jsp-examples/* worker1
 JkMount /*/servletsexamples/* worker1
 JkMount /*/Subastas/* worker1
 
  /etc/libapache2-mod-jk/workers.properties
 
 workers.tomcat_home=/opt/apache-tomcat
 workers.java_home=/opt/jdk1.6.0_03
 worker.list=worker1
 worker.list=ajp13_worker
 worker.ajp13_worker.port=8009
 worker.ajp13_worker.host=10.0.0.9
 worker.ajp13_worker.type=ajp13
 worker.ajp13_worker.lbfactor=1
 worker.worker1.port=8009
 worker.worker1.host=10.0.0.9
 worker.worker1.type=ajp13
 worker.worker1.lbfactor=2
 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=ajp13_worker
 
 /etc/apache2/uriworkermap.properties
 
 /admin/*=worker1
 /manager/*=worker1
 /jsp-examples/*=worker1mods-available
 /servlets-examples/*=worker1
 /examples/*=worker1
 /*.jsp=ajp13_worker
 /jkmanager=jkstatus
 
 /etc/apache2/sites-available/auction
 
 NameVirtualHost 10.0.0.9
 VirtualHost subastas.myserver.com
 ServerAdmin webmas...@localhost
 ServerName subastas.myserver.com
 DocumentRoot /opt/apache-tomcat/webapps/Auction
 Directory /
 Options FollowSymLinks
 AllowOverride None
 /Directory
 Directory /opt/apache-tomcat/webapps/Auction
 Options -Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
 allow from all
 /Directory
 
 
 
 ErrorLog /var/log/apache2/error.log
 
 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn
 
 CustomLog /var/log/apache2/access.log combined
 ServerSignature On
 
 
 /VirtualHost
 
 /etc/apache2/mods-available/jk.load
 
 LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
 
 There's nothing else.

JkMount and JkMountFile are per virtual host. You can either

- put them into 

Re: mod_jk don't work fine

2009-10-25 Thread Pid

On 25/10/2009 12:17, frpll wrote:




Pid Ster wrote:


On 24 Oct 2009, at 19:38, frplljose_lopez_r...@telefonica.net  wrote:



Hi everyone!
I have installed Apache2.2 and mod_jk 1.2.25. I have configured
httpd.conf
workers.properties,  uriworkermap.properties, etc... Apache 2.2 work
fine,
Tomcat 5.5.20 work fine but connector don't work fine. When I open
firefox
and I type the direction http://domain.com. If my config virtual
server
Apache have Indexed display directories. If I cliking on index.jsp
Tomcat
redirect to $CATALINA_HOME//webapps/ROOT/index.jsp, don't display
index.jsp
of my application. Why? Some idea ? I cant to sent file's
configuration.


I'd guess your config doesn't work.
You should post it, so someone here can assist.

p



You didn't post server.xml.


Hi!
My config is:
/etc/apache2.conf

ServerRoot /etc/apache2
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
IfModule mpm_prefork_module
 StartServers  5
 MinSpareServers   5
 MaxSpareServers  10
 MaxClients  150
 MaxRequestsPerChild   0
/IfModule
IfModule mpm_worker_module
 StartServers  2
 MaxClients  150
 MinSpareThreads  25
 MaxSpareThreads  75
 ThreadsPerChild  25
 MaxRequestsPerChild   0
/IfModule
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
Files ~ ^\.ht
 Order allow,deny
 Deny from all
/Files
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i -  %U referer
LogFormat %{User-agent}i agent
ServerTokens Full
ServerSignature On
# Include generic snippets of statements
Include /etc/apache2/conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/

/etc/apache2/httpd.conf

JkWorkersFile   /etc/libapache2-mod-jk/workers.properties
JkLogFile   /var/log/apache2/mod_jk.log
JkLogLevel  info
JkShmFile /var/log/apache2/mod_jk.shm
JkMountFile /etc/apache2/uriworkermap.properties
JkMount /*.jsp ajp13_worker
JkMount /*/servlet/ ajp13_worker
JkMount /*/jsp-examples/* worker1
JkMount /*/servletsexamples/* worker1
JkMount /*/Subastas/* worker1

  /etc/libapache2-mod-jk/workers.properties

workers.tomcat_home=/opt/apache-tomcat
workers.java_home=/opt/jdk1.6.0_03
worker.list=worker1
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=10.0.0.9
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
worker.worker1.port=8009
worker.worker1.host=10.0.0.9
worker.worker1.type=ajp13
worker.worker1.lbfactor=2
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker


I'm not the mod_jk expert around here, but it looks like you've defined 
two workers, where you only need one.  There's also a loadbalancer that 
you're not using.


Try just using ajp13_worker instead of worker1.

Is there an AJP Connector for port 8009 defined in your Tomcat server.xml?



/etc/apache2/uriworkermap.properties

/admin/*=worker1
/manager/*=worker1
/jsp-examples/*=worker1mods-available


Is worker1mods-available defined anywhere?



/servlets-examples/*=worker1
/examples/*=worker1


Why not remove the unnecessary example definitions?



/*.jsp=ajp13_worker


Try removing the slash:   *.jsp=ajp13_worker

 http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



/jkmanager=jkstatus



/etc/apache2/sites-available/auction

NameVirtualHost 10.0.0.9
VirtualHost subastas.myserver.com
 ServerAdmin webmas...@localhost
 ServerName subastas.myserver.com
 DocumentRoot /opt/apache-tomcat/webapps/Auction
 Directory /
 Options FollowSymLinks
 AllowOverride None
 /Directory
 Directory /opt/apache-tomcat/webapps/Auction
 Options -Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
 allow from all
 /Directory


You are publishing the webapp as the DocumentRoot, which is why you're 
seeing the JSPs in the indexed dir.  This is a security issue.


If you're going to use HTTPD and Tomcat, make a parallel directory for 
your static files. E.g.


 /path/to/sites/www.yoursite.com/httpdocs
 /path/to/sites/www.yoursite.com/httpdocs/images

 /path/to/sites/www.yoursite.com/webapps
 /path/to/sites/www.yoursite.com/webapps/ROOT


If you want the Auction webapp to be the default one, name it ROOT.

There's no reference to the mod_jk config inside this virtual host, I 
think you need to add that.  See docs URL above.


Unless 

Re: mod_jk don't work fine

2009-10-25 Thread frpll

Hi! 
A server.xml's split de Tomcat is:

 Connector
port=8080
redirectPort=8443
minSpareThreads=25
connectionTimeout=2
maxSpareThreads=75
maxThreads=150
/Connector
Connector
port=8009
redirectPort=8443
protocol=AJP/1.3
/Connector
Engine
defaultHost=localhost
name=Catalina
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
  Listener  className=org.apache.jk.config.ApacheConfig
modJk=/usr/lib/apache2/modules/mod_jk.so/

Host
  appBase=webapps
  name=localhost xmlValidation=false
Context
path=/EjemploEE-WebModule
/Context


Pid Ster wrote:
 
 On 25/10/2009 12:17, frpll wrote:



 Pid Ster wrote:

 On 24 Oct 2009, at 19:38, frplljose_lopez_r...@telefonica.net  wrote:


 Hi everyone!
 I have installed Apache2.2 and mod_jk 1.2.25. I have configured
 httpd.conf
 workers.properties,  uriworkermap.properties, etc... Apache 2.2 work
 fine,
 Tomcat 5.5.20 work fine but connector don't work fine. When I open
 firefox
 and I type the direction http://domain.com. If my config virtual
 server
 Apache have Indexed display directories. If I cliking on index.jsp
 Tomcat
 redirect to $CATALINA_HOME//webapps/ROOT/index.jsp, don't display
 index.jsp
 of my application. Why? Some idea ? I cant to sent file's
 configuration.

 I'd guess your config doesn't work.
 You should post it, so someone here can assist.

 p

 
 You didn't post server.xml.
 
 Hi!
 My config is:
 /etc/apache2.conf

 ServerRoot /etc/apache2
 LockFile /var/lock/apache2/accept.lock
 PidFile ${APACHE_PID_FILE}
 Timeout 300
 KeepAlive On
 MaxKeepAliveRequests 100
 KeepAliveTimeout 15
 IfModule mpm_prefork_module
  StartServers  5
  MinSpareServers   5
  MaxSpareServers  10
  MaxClients  150
  MaxRequestsPerChild   0
 /IfModule
 IfModule mpm_worker_module
  StartServers  2
  MaxClients  150
  MinSpareThreads  25
  MaxSpareThreads  75
  ThreadsPerChild  25
  MaxRequestsPerChild   0
 /IfModule
 User ${APACHE_RUN_USER}
 Group ${APACHE_RUN_GROUP}
 Files ~ ^\.ht
  Order allow,deny
  Deny from all
 /Files
 DefaultType text/plain
 HostnameLookups Off
 ErrorLog /var/log/apache2/error.log
 LogLevel warn
 # Include module configuration:
 Include /etc/apache2/mods-enabled/*.load
 Include /etc/apache2/mods-enabled/*.conf

 # Include all the user configurations:
 Include /etc/apache2/httpd.conf

 # Include ports listing
 Include /etc/apache2/ports.conf
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
 combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i -  %U referer
 LogFormat %{User-agent}i agent
 ServerTokens Full
 ServerSignature On
 # Include generic snippets of statements
 Include /etc/apache2/conf.d/

 # Include the virtual host configurations:
 Include /etc/apache2/sites-enabled/

 /etc/apache2/httpd.conf

 JkWorkersFile   /etc/libapache2-mod-jk/workers.properties
 JkLogFile   /var/log/apache2/mod_jk.log
 JkLogLevel  info
 JkShmFile /var/log/apache2/mod_jk.shm
 JkMountFile /etc/apache2/uriworkermap.properties
 JkMount /*.jsp ajp13_worker
 JkMount /*/servlet/ ajp13_worker
 JkMount /*/jsp-examples/* worker1
 JkMount /*/servletsexamples/* worker1
 JkMount /*/Subastas/* worker1

   /etc/libapache2-mod-jk/workers.properties

 workers.tomcat_home=/opt/apache-tomcat
 workers.java_home=/opt/jdk1.6.0_03
 worker.list=worker1
 worker.list=ajp13_worker
 worker.ajp13_worker.port=8009
 worker.ajp13_worker.host=10.0.0.9
 worker.ajp13_worker.type=ajp13
 worker.ajp13_worker.lbfactor=1
 worker.worker1.port=8009
 worker.worker1.host=10.0.0.9
 worker.worker1.type=ajp13
 worker.worker1.lbfactor=2
 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=ajp13_worker
 
 I'm not the mod_jk expert around here, but it looks like you've defined 
 two workers, where you only need one.  There's also a loadbalancer that 
 you're not using.
 
 Try just using ajp13_worker instead of worker1.
 
 Is there an AJP Connector for port 8009 defined in your Tomcat server.xml?
 
 
 /etc/apache2/uriworkermap.properties

 /admin/*=worker1
 /manager/*=worker1
 /jsp-examples/*=worker1mods-available
 
 Is worker1mods-available defined anywhere?
 
 
 /servlets-examples/*=worker1
 /examples/*=worker1
 
 Why not remove the unnecessary example definitions?
 
 
 /*.jsp=ajp13_worker
 
 Try removing the slash:   *.jsp=ajp13_worker
 
   http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html
 
 
 /jkmanager=jkstatus
  
 /etc/apache2/sites-available/auction

 NameVirtualHost 10.0.0.9
 VirtualHost subastas.myserver.com
  ServerAdmin webmas...@localhost
  ServerName subastas.myserver.com
  DocumentRoot /opt/apache-tomcat/webapps/Auction
  Directory /
  Options FollowSymLinks
  AllowOverride None
  /Directory

Re: mod_jk don't work fine

2009-10-24 Thread Pid Ster
On 24 Oct 2009, at 19:38, frpll jose_lopez_r...@telefonica.net wrote:


 Hi everyone!
 I have installed Apache2.2 and mod_jk 1.2.25. I have configured
 httpd.conf
 workers.properties,  uriworkermap.properties, etc... Apache 2.2 work
 fine,
 Tomcat 5.5.20 work fine but connector don't work fine. When I open
 firefox
 and I type the direction http://domain.com. If my config virtual
 server
 Apache have Indexed display directories. If I cliking on index.jsp
 Tomcat
 redirect to $CATALINA_HOME//webapps/ROOT/index.jsp, don't display
 index.jsp
 of my application. Why? Some idea ? I cant to sent file's
 configuration.

I'd guess your config doesn't work.
You should post it, so someone here can assist.

p


 Best Regard.
 --
 View this message in context: 
 http://www.nabble.com/mod_jk-don%27t-work-fine-tp26041828p26041828.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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


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



Re: if don't work?!?!?

2007-05-22 Thread Edoardo Panfili

Massimiliano PASQUALONI ha scritto:

Hi guy!
 
Wat's happen??
 
If i read an checkrequest post


String Pippo = request.getParameter(abilitato);

out.print(Pippo);

return me= on

If I try to make a condition whit if:

 


   if (Pippo == on) {




}


Maybe possible that I don't understand...

String pippo = request.getParameter(abilitato);
if (pippo.equals(on)) {
// ...
}


Edoardo

--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

-
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: if don't work?!?!?

2007-05-22 Thread David Delbecq
Basics of java programming: == operator compare objet instances, not
their content.
To check if 2 differences instance are the same, use the equals() method.
Eg:

if (Pippo.equals(on)) {
...
}

You should probably start by learning java language (J2SE) before you
start learning java enterprise (J2EE).

En l'instant précis du 22/05/07 16:39, Massimiliano PASQUALONI
s'exprimait en ces termes:
 Hi guy!
  
 Wat's happen??
  
 If i read an checkrequest post

 String Pippo = request.getParameter(abilitato);

 out.print(Pippo);

 return me= on

 If I try to make a condition whit if:

  

if (Pippo == on) {

 

 }

 these don't work
  
 And is'nt the first time, 
  
 if I try
  
 Pippo =  request.getParameter(abilitato);
 Pluto =  request.getParameter(abilitato);
  
 the if (Pippo == Pluto )  don't work!
  
  
  
 :-(
  
 please, help me!

 Massimiliano PASQUALONI

 Data Processing S.r.l.
 Reparto EDP
 S.S. 100 BA-TA Km 18
 c/o IL BARICENTRO 
 torre D
 70010 CASAMASSIMA (BA)

   


-
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: if don't work?!?!?

2007-05-22 Thread Jost Richstein

Have you tried

  if(on.equals(Pippo)) {
  
  }

Massimiliano PASQUALONI schrieb:

Hi guy!
 
Wat's happen??
 
If i read an checkrequest post


String Pippo = request.getParameter(abilitato);

out.print(Pippo);

return me= on

If I try to make a condition whit if:

 


   if (Pippo == on) {




}

these don't work
 
And is'nt the first time, 
 
if I try
 
Pippo =  request.getParameter(abilitato);

Pluto =  request.getParameter(abilitato);
 
the if (Pippo == Pluto )  don't work!
 
 
 
:-(
 
please, help me!


Massimiliano PASQUALONI

Data Processing S.r.l.
Reparto EDP
S.S. 100 BA-TA Km 18
c/o IL BARICENTRO 
torre D

70010 CASAMASSIMA (BA)

  


--
Jost Richstein
SoftDeCC Software GmbH
Email: [EMAIL PROTECTED]
Tel.: +49 89 89 06 78 47
Fax.: +49 89 89 06 78 33

SoftDeCC Software GmbH; Gesellschaft mit beschränkter Haftung; Sitz der 
Gesellschaft: München; Registergericht: München, HRB 123667; Geschäftsführer: 
Ralf Malis, Georg Nüssel, Jost Richstein, Gerd Wilts



-
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: if don't work?!?!?

2007-05-22 Thread Propes, Barry L
 if (Pippo.equals(Pluto)) maybe?

-Original Message-
From: Massimiliano PASQUALONI
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 9:40 AM
To: 'Tomcat Users List'
Subject: if don't work?!?!?


Hi guy!
 
Wat's happen??
 
If i read an checkrequest post

String Pippo = request.getParameter(abilitato);

out.print(Pippo);

return me= on

If I try to make a condition whit if:

 

   if (Pippo == on) {



}

these don't work
 
And is'nt the first time, 
 
if I try
 
Pippo =  request.getParameter(abilitato);
Pluto =  request.getParameter(abilitato);
 
the if (Pippo == Pluto )  don't work!
 
 
 
:-(
 
please, help me!

Massimiliano PASQUALONI

Data Processing S.r.l.
Reparto EDP
S.S. 100 BA-TA Km 18
c/o IL BARICENTRO 
torre D
70010 CASAMASSIMA (BA)

-
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: if don't work?!?!?

2007-05-22 Thread Bryce Burgess \(bburgess\)

Would this work for you?
( http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#toLowerCase() )

Javabean:

public boolean StringToBoolean(String StrBool)
 {
 boolean convertito=false;
   // since the default is false, only need to check the true... 
   // If any of these are true, return true, else return false (on any 
string of characters...)

if ((contentEquals(toLowerCase(StrBool) 1))|| 
(contentEquals(toLowerCase(StrBool) on))   || 
(contentEquals(toLowerCase(StrBool) yes))  || 
(contentEquals(toLowerCase(StrBool) si))   || 
(contentEquals(toLowerCase(StrBool) true)) )
{
convertito = true;
}

 return convertito;
 }



-Original Message-
From: Massimiliano PASQUALONI [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 22, 2007 9:58 AM
To: 'Tomcat Users List'
Subject: R: if don't work?!?!?

No, don't work!

Im try a simple function in my javabean that convert from string to
boolean:

JSP:
String Prova = request.getParameter(abilitato);
 // where abilitato is a checkbox in a form





Javabean:

public boolean StringToBoolean(String StrBool)
 {
boolean convertito=false;



if ((StrBool == 0) || (StrBool == Off) || (StrBool ==
off) || (StrBool ==   No) || (StrBool == no) || (StrBool == False)
|| (StrBool == false))
{
convertito = false;
}

return convertito;
 }
 







If I try 

if (on.equals(request.getParameter(abilitato))){
Abilitato = true;
}



Or 

 if (request.getParameter(abilitato).equals(on)){
Abilitato = true;
}

Or

if (request.getParameter(abilitato) == on){
Abilitato = true;
}

Or 
Boolean Abilitato = bean.StringToBoolean(Prova);


I have the same result: don't work..


Yesterday I've try also

Referer = request.getHeader(Referer) 
AltroReferer = request.getHeader(Referer) 

if (Referer == AltroReferer ){...}

And don't work.


:-O




-Messaggio originale-
Da: Edoardo Panfili [mailto:[EMAIL PROTECTED]
Inviato: martedì 22 maggio 2007 16.44
A: Tomcat Users List
Oggetto: Re: if don't work?!?!?

Massimiliano PASQUALONI ha scritto:
 Hi guy!
  
 Wat's happen??
  
 If i read an checkrequest post
 
 String Pippo = request.getParameter(abilitato);
 
 out.print(Pippo);
 
 return me= on
 
 If I try to make a condition whit if:
 
  
 
if (Pippo == on) {
 
 
 
 }

Maybe possible that I don't understand...

String pippo = request.getParameter(abilitato);
if (pippo.equals(on)) {
// ...
}


Edoardo

--
[EMAIL PROTECTED]
AIM: edoardopn
Jabber: [EMAIL PROTECTED]
tel:075 9142766

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (ProxSMTP 1.4)
AntiVirus: ClamAV 0.88.4/3281 - Tue May 22 10:50:43 2007 by Markus Madlener @ 
http://www.copfilter.org

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



Re: if don't work?!?!?

2007-05-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bryce,

Bryce Burgess (bburgess) wrote:
 Would this work for you?
 ( http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#toLowerCase() 
 )

String.equalsIgnoreCase is much better.

- -chris

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

iD8DBQFGUzhA9CaO5/Lv0PARAov3AJwJ1Pb0vyNKuBhdcKiobNLWfTntZwCgumW8
7HZczna2SiSQ1sGZ3d2ZtRs=
=08+U
-END PGP SIGNATURE-

-
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: Unsubscribe DON'T WORK!

2005-10-20 Thread David Delbecq
That's fun, you can post to the mailing list, but
your messages for unsuscribing are considered spams :)

[EMAIL PROTECTED]: host asf.osuosl.org[140.211.166.49]
said: 552 spam score (7.0) exceeded threshold




[EMAIL PROTECTED] a écrit :

Hi team of Tomcat Users List!

All email that you have for unsubscribe DON'T WORK!

I send more then 20 times for the 2 emails that you gave and they DON'T WORK!
Always get the Undelivered Mail Returned to Sender!
Do you have any ideia of what is going on?

Best Regards
António

- Mensagem Reenviada de [EMAIL PROTECTED] -
Data: Wed, 19 Oct 2005 22:53:08 +0100 (WEST)
  De: Mail Delivery System [EMAIL PROTECTED]
Responder para: Mail Delivery System [EMAIL PROTECTED]
 Assunto: Undelivered Mail Returned to Sender
Para: [EMAIL PROTECTED]

This is the Postfix program at host galadriel.portugalmail.pt.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to postmaster

If you do so, please include this problem report. You can
delete your own text from the message returned below.

   The Postfix program

[EMAIL PROTECTED]: host asf.osuosl.org[140.211.166.49]
said: 552 spam score (7.0) exceeded threshold


- Finalizar mensagem reenviada -


  



Reporting-MTA: dns; galadriel.portugalmail.pt
Arrival-Date: Wed, 19 Oct 2005 22:52:44 +0100 (WEST)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host asf.osuosl.org[140.211.166.49] said: 552 spam
score (7.0) exceeded threshold
  


 

 Expéditeur:
 [EMAIL PROTECTED]
 Date:
 Wed, 19 Oct 2005 22:52:44 +0100
 Destinataire:
 [EMAIL PROTECTED]

 Destinataire:
 [EMAIL PROTECTED]

 Received:
 by galadriel.portugalmail.pt (Postfix, from userid 30) id B7D287C80F;
 Wed, 19 Oct 2005 22:52:44 +0100 (WEST)
 Received:
 from 213-58-9-102.acesso.portugalmail.pt
 (213-58-9-102.acesso.portugalmail.pt [213.58.9.102]) by
 gold.portugalmail.pt (IMP) with HTTP for
 [EMAIL PROTECTED]@localhost; Wed, 19 Oct 2005 22:52:44 +0100
 ID du Message:
 [EMAIL PROTECTED]
 Version de MIME:
 1.0
 Content-Type:
 text/plain
 Content-Disposition:
 inline
 Agent utilisateur:
 Internet Messaging Program (IMP) 4.0-cvs
 Content-Transfer-Encoding:
 7bit


Received: by galadriel.portugalmail.pt (Postfix, from userid 30)
   id B7D287C80F; Wed, 19 Oct 2005 22:52:44 +0100 (WEST)
Received: from 213-58-9-102.acesso.portugalmail.pt 
(213-58-9-102.acesso.portugalmail.pt [213.58.9.102]) 
   by gold.portugalmail.pt (IMP) with HTTP 
   for [EMAIL PROTECTED]@localhost; Wed, 19 Oct 2005 22:52:44 +0100
Message-ID: [EMAIL PROTECTED]
Date: Wed, 19 Oct 2005 22:52:44 +0100
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs



  



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



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



RE: Unsubscribe DON'T WORK!

2005-10-19 Thread GB Developer
I have an idea, perhaps it's correct. 

It looks like a mail server admin has got their spam filter cranked past
MAX. 

From your returned email:

   The Postfix program
 
 [EMAIL PROTECTED]: host 
 asf.osuosl.org[140.211.166.49]
 said: 552 spam score (7.0) exceeded threshold
 

So your 'unsubscribe me' message is being bounced back to you, because the
mailserver at asf.osuosl.org thinks it's spam.  That is: the unsubscribe
message is never getting to the tomcat-user list server.  

Hmm.. 'asf' sounds like maybe an Apache Software Foundation mirror?   So
is this a mirror problem? 

Or is it the Postfix program at host galadriel.portugalmail.pt?

Maybe it's not the asf.osuosl.org server, but your own mailserver. 

Who knows how to read mailserver spew? 


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 19, 2005 5:01 PM
 To: users@tomcat.apache.org
 Subject: Unsubscribe DON'T WORK!
 
 
 Hi team of Tomcat Users List!
 
 All email that you have for unsubscribe DON'T WORK!
 
 I send more then 20 times for the 2 emails that you gave and 
 they DON'T WORK! Always get the Undelivered Mail Returned to 
 Sender! Do you have any ideia of what is going on?
 
 Best Regards
 António
 
 - Mensagem Reenviada de 
 [EMAIL PROTECTED] -
 Data: Wed, 19 Oct 2005 22:53:08 +0100 (WEST)
   De: Mail Delivery System 
 [EMAIL PROTECTED]
 Responder para: Mail Delivery System 
 [EMAIL PROTECTED]
  Assunto: Undelivered Mail Returned to Sender
 Para: [EMAIL PROTECTED]
 
 This is the Postfix program at host galadriel.portugalmail.pt.
 
 I'm sorry to have to inform you that the message returned
 below could not be delivered to one or more destinations.
 
 For further assistance, please send mail to postmaster
 
 If you do so, please include this problem report. You can 
 delete your own text from the message returned below.
 
   The Postfix program
 
 [EMAIL PROTECTED]: host 
 asf.osuosl.org[140.211.166.49]
 said: 552 spam score (7.0) exceeded threshold
 
 
 - Finalizar mensagem reenviada -
 
 
 -- 
 


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